diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-09-18 14:34:04 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-04 11:15:27 +0000 |
commit | e6430e577f105ad8813c92e75c54660c4985026e (patch) | |
tree | 88115e5d1fb471fea807111924dcccbeadbf9e4f /chromium/components/ui_metrics | |
parent | 53d399fe6415a96ea6986ec0d402a9c07da72453 (diff) | |
download | qtwebengine-chromium-e6430e577f105ad8813c92e75c54660c4985026e.tar.gz |
BASELINE: Update Chromium to 61.0.3163.99
Change-Id: I8452f34574d88ca2b27af9bd56fc9ff3f16b1367
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/ui_metrics')
-rw-r--r-- | chromium/components/ui_metrics/BUILD.gn | 9 | ||||
-rw-r--r-- | chromium/components/ui_metrics/sadtab_metrics_types.h | 28 |
2 files changed, 37 insertions, 0 deletions
diff --git a/chromium/components/ui_metrics/BUILD.gn b/chromium/components/ui_metrics/BUILD.gn new file mode 100644 index 00000000000..941ed1c5eef --- /dev/null +++ b/chromium/components/ui_metrics/BUILD.gn @@ -0,0 +1,9 @@ +# Copyright 2017 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +source_set("ui_metrics") { + sources = [ + "sadtab_metrics_types.h", + ] +} diff --git a/chromium/components/ui_metrics/sadtab_metrics_types.h b/chromium/components/ui_metrics/sadtab_metrics_types.h new file mode 100644 index 00000000000..056541aecd6 --- /dev/null +++ b/chromium/components/ui_metrics/sadtab_metrics_types.h @@ -0,0 +1,28 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_ +#define COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_ + +namespace ui_metrics { +// An enum for reporting interaction events to a UMA histogram. +// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.tab +enum class SadTabEvent { + // Records that the Sad Tab was displayed. + DISPLAYED = 0, + // Records that the main Sad Tab button was triggered. + BUTTON_CLICKED = 1, + // Records that the Sad Tab help link was triggered. + HELP_LINK_CLICKED = 2, + // Enum end marker. + MAX_SAD_TAB_EVENT = 3, +}; + +// Describes the mode of the Sad Tab as being in 'reload' mode. +const char kSadTabReloadHistogramKey[] = "Tabs.SadTab.Reload.Event"; +// Describes the mode of the Sad Tab as being in 'feedback' mode. +const char kSadTabFeedbackHistogramKey[] = "Tabs.SadTab.Feedback.Event"; +} + +#endif // COMPONENTS_UI_METRICS_SADTAB_METRICS_TYPES_H_ |