Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: ash/common/wm_shell.h

Issue 2160833002: Adds WmShell::RecordTaskSwitchMetric() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/metrics/task_switch_source.h ('k') | ash/metrics/task_switch_metrics_recorder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 class ShellObserver; 35 class ShellObserver;
36 class SystemTrayDelegate; 36 class SystemTrayDelegate;
37 class SystemTrayNotifier; 37 class SystemTrayNotifier;
38 class WindowCycleEventFilter; 38 class WindowCycleEventFilter;
39 class WindowResizer; 39 class WindowResizer;
40 class WindowSelectorController; 40 class WindowSelectorController;
41 class WmActivationObserver; 41 class WmActivationObserver;
42 class WmDisplayObserver; 42 class WmDisplayObserver;
43 class WmWindow; 43 class WmWindow;
44 44
45 enum class TaskSwitchSource;
46
45 namespace wm { 47 namespace wm {
46 class MaximizeModeEventHandler; 48 class MaximizeModeEventHandler;
47 class WindowState; 49 class WindowState;
48 } 50 }
49 51
50 #if defined(OS_CHROMEOS) 52 #if defined(OS_CHROMEOS)
51 class LogoutConfirmationController; 53 class LogoutConfirmationController;
52 #endif 54 #endif
53 55
54 // Similar to ash::Shell. Eventually the two will be merged. 56 // Similar to ash::Shell. Eventually the two will be merged.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // TODO(jamescook): Remove this when ShellDelegate has been moved. 159 // TODO(jamescook): Remove this when ShellDelegate has been moved.
158 virtual bool CanShowWindowForUser(WmWindow* window) = 0; 160 virtual bool CanShowWindowForUser(WmWindow* window) = 0;
159 161
160 // See aura::client::CursorClient for details on these. 162 // See aura::client::CursorClient for details on these.
161 virtual void LockCursor() = 0; 163 virtual void LockCursor() = 0;
162 virtual void UnlockCursor() = 0; 164 virtual void UnlockCursor() = 0;
163 165
164 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; 166 virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
165 167
166 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; 168 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0;
169 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0;
167 170
168 // Returns a WindowResizer to handle dragging. |next_window_resizer| is 171 // Returns a WindowResizer to handle dragging. |next_window_resizer| is
169 // the next WindowResizer in the WindowResizer chain. This may return 172 // the next WindowResizer in the WindowResizer chain. This may return
170 // |next_window_resizer|. 173 // |next_window_resizer|.
171 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( 174 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer(
172 std::unique_ptr<WindowResizer> next_window_resizer, 175 std::unique_ptr<WindowResizer> next_window_resizer,
173 wm::WindowState* window_state) = 0; 176 wm::WindowState* window_state) = 0;
174 177
175 virtual std::unique_ptr<WindowCycleEventFilter> 178 virtual std::unique_ptr<WindowCycleEventFilter>
176 CreateWindowCycleEventFilter() = 0; 179 CreateWindowCycleEventFilter() = 0;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 bool simulate_modal_window_open_for_testing_ = false; 277 bool simulate_modal_window_open_for_testing_ = false;
275 278
276 #if defined(OS_CHROMEOS) 279 #if defined(OS_CHROMEOS)
277 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 280 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
278 #endif 281 #endif
279 }; 282 };
280 283
281 } // namespace ash 284 } // namespace ash
282 285
283 #endif // ASH_COMMON_WM_SHELL_H_ 286 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW
« no previous file with comments | « ash/common/metrics/task_switch_source.h ('k') | ash/metrics/task_switch_metrics_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698