1 // Copyright 2019 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef ASH_WM_DESKS_DESKS_HISTOGRAM_ENUMS_H_ 6 #define ASH_WM_DESKS_DESKS_HISTOGRAM_ENUMS_H_ 7 8 namespace ash { 9 10 // These values are logged to UMA. Entries should not be renumbered and 11 // numeric values should never be reused. Please keep in sync with 12 // DesksCreationRemovalSource in src/tools/metrics/histograms/enums.xml. 13 enum class DesksCreationRemovalSource { 14 kButton = 0, 15 kKeyboard = 1, 16 kDesksRestore = 2, 17 kMaxValue = kDesksRestore, 18 }; 19 20 // These values are logged to UMA. Entries should not be renumbered and 21 // numeric values should never be reused. Please keep in sync with 22 // DesksMoveWindowFromActiveDeskSource in 23 // src/tools/metrics/histograms/enums.xml. 24 enum class DesksMoveWindowFromActiveDeskSource { 25 kDragAndDrop = 0, 26 kShortcut = 1, 27 kMaxValue = kShortcut, 28 }; 29 30 // These values are logged to UMA. Entries should not be renumbered and 31 // numeric values should never be reused. Please keep in sync with 32 // DesksSwitchSource in src/tools/metrics/histograms/enums.xml. 33 enum class DesksSwitchSource { 34 kNewDeskShortcut = 0, 35 kDeskRemoved = 1, 36 kDeskSwitchShortcut = 2, 37 kMiniViewButton = 3, 38 kWindowActivated = 4, 39 kDeskSwitchTouchpad = 5, 40 kUserSwitch = 6, 41 kMaxValue = kUserSwitch, 42 }; 43 44 } // namespace ash 45 46 #endif // ASH_WM_DESKS_DESKS_HISTOGRAM_ENUMS_H_ 47