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

Side by Side Diff: ash/shell_observer.h

Issue 2047373002: Moves ShellObserver to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/shelf/shelf_locking_manager.h ('k') | ash/system/cast/tray_cast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SHELL_OBSERVER_H_
6 #define ASH_SHELL_OBSERVER_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/common/login_status.h"
10
11 namespace ash {
12
13 class WmWindow;
14
15 class ASH_EXPORT ShellObserver {
16 public:
17 // Invoked after the screen's work area insets changes.
18 virtual void OnDisplayWorkAreaInsetsChanged() {}
19
20 // Invoked when the user logs in.
21 virtual void OnLoginStateChanged(LoginStatus status) {}
22
23 // Invoked when the application is exiting.
24 virtual void OnAppTerminating() {}
25
26 // Invoked when the screen is locked (after the lock window is visible) or
27 // unlocked.
28 virtual void OnLockStateChanged(bool locked) {}
29
30 // Called when a casting session is started or stopped.
31 virtual void OnCastingSessionStartedOrStopped(bool started) {}
32
33 // Invoked after a non-primary root window is created.
34 virtual void OnRootWindowAdded(WmWindow* root_window) {}
35
36 // Invoked after the shelf has been created for |root_window|.
37 virtual void OnShelfCreatedForRootWindow(WmWindow* root_window) {}
38
39 // Invoked when the shelf alignment in |root_window| is changed.
40 virtual void OnShelfAlignmentChanged(WmWindow* root_window) {}
41
42 // Invoked when the shelf auto-hide behavior in |root_window| is changed.
43 virtual void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) {}
44
45 // Invoked when the projection touch HUD is toggled.
46 virtual void OnTouchHudProjectionToggled(bool enabled) {}
47
48 // Invoked when entering or exiting fullscreen mode in |root_window|.
49 virtual void OnFullscreenStateChanged(bool is_fullscreen,
50 WmWindow* root_window) {}
51
52 // Called when the overview mode is about to be started (before the windows
53 // get re-arranged).
54 virtual void OnOverviewModeStarting() {}
55
56 // Called after overview mode has ended.
57 virtual void OnOverviewModeEnded() {}
58
59 // Called when the always maximize mode has started. Windows might still
60 // animate though.
61 virtual void OnMaximizeModeStarted() {}
62
63 // Called when the always maximize mode has ended. Windows may still be
64 // animating but have been restored.
65 virtual void OnMaximizeModeEnded() {}
66
67 // Called at the end of Shell::Init.
68 virtual void OnShellInitialized() {}
69
70 protected:
71 virtual ~ShellObserver() {}
72 };
73
74 } // namespace ash
75
76 #endif // ASH_SHELL_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_locking_manager.h ('k') | ash/system/cast/tray_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698