blob: 901c25aa6bbdd7f1195a8d5bf58c30ae80e7b7de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_SHELL_OBSERVER_H_
#define ASH_SHELL_OBSERVER_H_
#include "ash/ash_export.h"
#include "ash/system/user/login_status.h"
namespace aura {
class Window;
}
namespace ash {
class ASH_EXPORT ShellObserver {
public:
// Invoked after the screen's work area insets changes.
virtual void OnDisplayWorkAreaInsetsChanged() {}
// Invoked when the user logs in.
virtual void OnLoginStateChanged(user::LoginStatus status) {}
// Invoked when the application is exiting.
virtual void OnAppTerminating() {}
// Invoked when the screen is locked (after the lock window is visible) or
// unlocked.
virtual void OnLockStateChanged(bool locked) {}
// Invoked after a non-primary root window is created.
virtual void OnRootWindowAdded(aura::Window* root_window) {}
// Invoked after the shelf has been created for |root_window|.
virtual void OnShelfCreatedForRootWindow(aura::Window* root_window) {}
// Invoked when the shelf alignment in |root_window| is changed.
virtual void OnShelfAlignmentChanged(aura::Window* root_window) {}
// Invoked when the projection touch HUD is toggled.
virtual void OnTouchHudProjectionToggled(bool enabled) {}
// Invoked when entering or exiting fullscreen mode in |root_window|.
virtual void OnFullscreenStateChanged(bool is_fullscreen,
aura::Window* root_window) {}
// Called when the overview mode is about to be started (before the windows
// get re-arranged).
virtual void OnOverviewModeStarting() {}
// Called after overview mode has ended.
virtual void OnOverviewModeEnded() {}
// Called when the always maximize mode has started. Windows might still
// animate though.
virtual void OnMaximizeModeStarted() {}
// Called when the always maximize mode has ended. Windows may still be
// animating but have been restored.
virtual void OnMaximizeModeEnded() {}
protected:
virtual ~ShellObserver() {}
};
} // namespace ash
#endif // ASH_SHELL_OBSERVER_H_
|