Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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_COMMON_METRICS_TASK_SWITCH_SOURCE_H_ | |
| 6 #define ASH_COMMON_METRICS_TASK_SWITCH_SOURCE_H_ | |
| 7 | |
| 8 namespace ash { | |
| 9 | |
| 10 // Enumeration of the different user interfaces that could be the source of | |
| 11 // a task switch. Note this is not necessarily comprehensive of all sources. | |
| 12 enum class TaskSwitchSource { | |
| 13 // Task switches caused by any two sources in this enum. NOTE: This value | |
| 14 // should NOT be used outside of this class. | |
|
James Cook
2016/07/18 22:27:10
nit: "this class" -> which? or in general, where i
sky
2016/07/18 22:43:45
Ya, sorry, I moved the code without carefully read
| |
| 15 ANY, | |
| 16 // Task switches from selecting items in the app list. | |
| 17 APP_LIST, | |
| 18 // Task switches caused by the user activating a task window by clicking or | |
| 19 // tapping on it. | |
| 20 DESKTOP, | |
| 21 // Task switches caused by selecting a window from overview mode which is | |
| 22 // different from the previously-active window. | |
| 23 OVERVIEW_MODE, | |
| 24 // All task switches caused by shelf buttons, not including sub-menus. | |
| 25 SHELF, | |
| 26 // All task switches caused by the tab strip. | |
| 27 TAB_STRIP, | |
| 28 // Task switches caused by the WindowCycleController (ie Alt+Tab). | |
| 29 WINDOW_CYCLE_CONTROLLER | |
| 30 }; | |
| 31 | |
| 32 } // namespace ash | |
| 33 | |
| 34 #endif // ASH_COMMON_METRICS_TASK_SWITCH_SOURCE_H_ | |
| OLD | NEW |