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

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: 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
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 23 matching lines...) Expand all
34 class ShellDelegate; 34 class ShellDelegate;
35 class ShellObserver; 35 class ShellObserver;
36 class SystemTrayDelegate; 36 class SystemTrayDelegate;
37 class SystemTrayNotifier; 37 class SystemTrayNotifier;
38 class WindowResizer; 38 class WindowResizer;
39 class WindowSelectorController; 39 class WindowSelectorController;
40 class WmActivationObserver; 40 class WmActivationObserver;
41 class WmDisplayObserver; 41 class WmDisplayObserver;
42 class WmWindow; 42 class WmWindow;
43 43
44 enum class TaskSwitchSource;
James Cook 2016/07/18 22:27:10 I love enum class.
45
44 namespace wm { 46 namespace wm {
45 class MaximizeModeEventHandler; 47 class MaximizeModeEventHandler;
46 class WindowState; 48 class WindowState;
47 } 49 }
48 50
49 #if defined(OS_CHROMEOS) 51 #if defined(OS_CHROMEOS)
50 class LogoutConfirmationController; 52 class LogoutConfirmationController;
51 #endif 53 #endif
52 54
53 // Similar to ash::Shell. Eventually the two will be merged. 55 // Similar to ash::Shell. Eventually the two will be merged.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // TODO(jamescook): Remove this when ShellDelegate has been moved. 158 // TODO(jamescook): Remove this when ShellDelegate has been moved.
157 virtual bool CanShowWindowForUser(WmWindow* window) = 0; 159 virtual bool CanShowWindowForUser(WmWindow* window) = 0;
158 160
159 // See aura::client::CursorClient for details on these. 161 // See aura::client::CursorClient for details on these.
160 virtual void LockCursor() = 0; 162 virtual void LockCursor() = 0;
161 virtual void UnlockCursor() = 0; 163 virtual void UnlockCursor() = 0;
162 164
163 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; 165 virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
164 166
165 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; 167 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0;
168 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0;
166 169
167 // Returns a WindowResizer to handle dragging. |next_window_resizer| is 170 // Returns a WindowResizer to handle dragging. |next_window_resizer| is
168 // the next WindowResizer in the WindowResizer chain. This may return 171 // the next WindowResizer in the WindowResizer chain. This may return
169 // |next_window_resizer|. 172 // |next_window_resizer|.
170 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( 173 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer(
171 std::unique_ptr<WindowResizer> next_window_resizer, 174 std::unique_ptr<WindowResizer> next_window_resizer,
172 wm::WindowState* window_state) = 0; 175 wm::WindowState* window_state) = 0;
173 176
174 virtual std::unique_ptr<wm::MaximizeModeEventHandler> 177 virtual std::unique_ptr<wm::MaximizeModeEventHandler>
175 CreateMaximizeModeEventHandler() = 0; 178 CreateMaximizeModeEventHandler() = 0;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool simulate_modal_window_open_for_testing_ = false; 273 bool simulate_modal_window_open_for_testing_ = false;
271 274
272 #if defined(OS_CHROMEOS) 275 #if defined(OS_CHROMEOS)
273 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 276 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
274 #endif 277 #endif
275 }; 278 };
276 279
277 } // namespace ash 280 } // namespace ash
278 281
279 #endif // ASH_COMMON_WM_SHELL_H_ 282 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698