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

Side by Side Diff: ash/shell_observer.h

Issue 2906693003: [mus+ash] Removes WmWindow from screen_dimmer and video_detector (Closed)
Patch Set: [mus+ash] Removes WmWindow from screen_dimmer and video_detector Created 3 years, 6 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/shell.cc ('k') | ash/wallpaper/wallpaper_controller.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SHELL_OBSERVER_H_ 5 #ifndef ASH_SHELL_OBSERVER_H_
6 #define ASH_SHELL_OBSERVER_H_ 6 #define ASH_SHELL_OBSERVER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/login_status.h" 9 #include "ash/login_status.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 16
17 class WmWindow; 17 class WmWindow;
18 18
19 class ASH_EXPORT ShellObserver { 19 class ASH_EXPORT ShellObserver {
20 public: 20 public:
21 // Called when a casting session is started or stopped. 21 // Called when a casting session is started or stopped.
22 virtual void OnCastingSessionStartedOrStopped(bool started) {} 22 virtual void OnCastingSessionStartedOrStopped(bool started) {}
23 23
24 // Invoked after a non-primary root window is created. 24 // Invoked after a non-primary root window is created.
25 virtual void OnRootWindowAdded(WmWindow* root_window) {} 25 virtual void OnRootWindowAdded(aura::Window* root_window) {}
26 26
27 // Invoked after the shelf has been created for |root_window|. 27 // Invoked after the shelf has been created for |root_window|.
28 virtual void OnShelfCreatedForRootWindow(WmWindow* root_window) {} 28 virtual void OnShelfCreatedForRootWindow(WmWindow* root_window) {}
29 29
30 // Invoked when the shelf alignment in |root_window| is changed. 30 // Invoked when the shelf alignment in |root_window| is changed.
31 virtual void OnShelfAlignmentChanged(WmWindow* root_window) {} 31 virtual void OnShelfAlignmentChanged(WmWindow* root_window) {}
32 32
33 // Invoked when the shelf auto-hide behavior in |root_window| is changed. 33 // Invoked when the shelf auto-hide behavior in |root_window| is changed.
34 virtual void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) {} 34 virtual void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) {}
35 35
36 // Invoked when the projection touch HUD is toggled. 36 // Invoked when the projection touch HUD is toggled.
37 virtual void OnTouchHudProjectionToggled(bool enabled) {} 37 virtual void OnTouchHudProjectionToggled(bool enabled) {}
38 38
39 // Invoked when entering or exiting fullscreen mode in |root_window|. 39 // Invoked when entering or exiting fullscreen mode in |root_window|.
40 virtual void OnFullscreenStateChanged(bool is_fullscreen, 40 virtual void OnFullscreenStateChanged(bool is_fullscreen,
41 WmWindow* root_window) {} 41 aura::Window* root_window) {}
42 42
43 // Invoked when |pinned_window| enter or exit pinned mode. 43 // Invoked when |pinned_window| enter or exit pinned mode.
44 virtual void OnPinnedStateChanged(aura::Window* pinned_window) {} 44 virtual void OnPinnedStateChanged(aura::Window* pinned_window) {}
45 45
46 // Called when the overview mode is about to be started (before the windows 46 // Called when the overview mode is about to be started (before the windows
47 // get re-arranged). 47 // get re-arranged).
48 virtual void OnOverviewModeStarting() {} 48 virtual void OnOverviewModeStarting() {}
49 49
50 // Called after overview mode has ended. 50 // Called after overview mode has ended.
51 virtual void OnOverviewModeEnded() {} 51 virtual void OnOverviewModeEnded() {}
(...skipping 16 matching lines...) Expand all
68 // Called at the end of Shell::Init. 68 // Called at the end of Shell::Init.
69 virtual void OnShellInitialized() {} 69 virtual void OnShellInitialized() {}
70 70
71 protected: 71 protected:
72 virtual ~ShellObserver() {} 72 virtual ~ShellObserver() {}
73 }; 73 };
74 74
75 } // namespace ash 75 } // namespace ash
76 76
77 #endif // ASH_SHELL_OBSERVER_H_ 77 #endif // ASH_SHELL_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wallpaper/wallpaper_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698