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

Side by Side Diff: ash/shell_observer.h

Issue 11570017: Enables storing shelf's auto_hide_behavior and alignment per display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/app_list_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/system/user/login_status.h" 9 #include "ash/system/user/login_status.h"
10 10
11 namespace aura {
12 class RootWindow;
13 }
14
11 namespace ash { 15 namespace ash {
12 16
13 class ASH_EXPORT ShellObserver { 17 class ASH_EXPORT ShellObserver {
14 public: 18 public:
15 // Invoked after the screen's work area insets changes. 19 // Invoked after the screen's work area insets changes.
16 virtual void OnDisplayWorkAreaInsetsChanged() {} 20 virtual void OnDisplayWorkAreaInsetsChanged() {}
17 21
18 // Invoked when the user logs in. 22 // Invoked when the user logs in.
19 virtual void OnLoginStateChanged(user::LoginStatus status) {} 23 virtual void OnLoginStateChanged(user::LoginStatus status) {}
20 24
21 // Invoked when the application is exiting. 25 // Invoked when the application is exiting.
22 virtual void OnAppTerminating() {} 26 virtual void OnAppTerminating() {}
23 27
24 // Invoked when the screen is locked (after the lock window is visible) or 28 // Invoked when the screen is locked (after the lock window is visible) or
25 // unlocked. 29 // unlocked.
26 virtual void OnLockStateChanged(bool locked) {} 30 virtual void OnLockStateChanged(bool locked) {}
27 31
28 // Invoked when the shelf alignment is changed. 32 // Invoked when the shelf alignment in |root_window| is changed.
29 virtual void OnShelfAlignmentChanged() {} 33 virtual void OnShelfAlignmentChanged(aura::RootWindow* root_window) {}
30 34
31 protected: 35 protected:
32 virtual ~ShellObserver() {} 36 virtual ~ShellObserver() {}
33 }; 37 };
34 38
35 } // namespace ash 39 } // namespace ash
36 40
37 #endif // ASH_SHELL_OBSERVER_H_ 41 #endif // ASH_SHELL_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/app_list_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698