OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_SHELL_H_ | 5 #ifndef UI_AURA_SHELL_SHELL_H_ |
6 #define UI_AURA_SHELL_SHELL_H_ | 6 #define UI_AURA_SHELL_SHELL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Adds or removes |filter| from the RootWindowEventFilter. | 62 // Adds or removes |filter| from the RootWindowEventFilter. |
63 void AddRootWindowEventFilter(aura::EventFilter* filter); | 63 void AddRootWindowEventFilter(aura::EventFilter* filter); |
64 void RemoveRootWindowEventFilter(aura::EventFilter* filter); | 64 void RemoveRootWindowEventFilter(aura::EventFilter* filter); |
65 | 65 |
66 // Toggles between overview mode and normal mode. | 66 // Toggles between overview mode and normal mode. |
67 void ToggleOverview(); | 67 void ToggleOverview(); |
68 | 68 |
69 // Toggles app list. | 69 // Toggles app list. |
70 void ToggleAppList(); | 70 void ToggleAppList(); |
71 | 71 |
| 72 // Returns true if the screen is locked. |
| 73 bool IsScreenLocked() const; |
| 74 |
72 ShellAcceleratorController* accelerator_controller() { | 75 ShellAcceleratorController* accelerator_controller() { |
73 return accelerator_controller_.get(); | 76 return accelerator_controller_.get(); |
74 } | 77 } |
75 | 78 |
76 ShellTooltipManager* tooltip_manager() { | 79 ShellTooltipManager* tooltip_manager() { |
77 return tooltip_manager_.get(); | 80 return tooltip_manager_.get(); |
78 } | 81 } |
79 | 82 |
80 ShellDelegate* delegate() { return delegate_.get(); } | 83 ShellDelegate* delegate() { return delegate_.get(); } |
81 Launcher* launcher() { return launcher_.get(); } | 84 Launcher* launcher() { return launcher_.get(); } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_; | 122 scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_; |
120 | 123 |
121 scoped_ptr<ShellTooltipManager> tooltip_manager_; | 124 scoped_ptr<ShellTooltipManager> tooltip_manager_; |
122 | 125 |
123 DISALLOW_COPY_AND_ASSIGN(Shell); | 126 DISALLOW_COPY_AND_ASSIGN(Shell); |
124 }; | 127 }; |
125 | 128 |
126 } // namespace aura_shell | 129 } // namespace aura_shell |
127 | 130 |
128 #endif // UI_AURA_SHELL_SHELL_H_ | 131 #endif // UI_AURA_SHELL_SHELL_H_ |
OLD | NEW |