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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes | 47 // Upon creation, the Shell sets itself as the Desktop's delegate, which takes |
48 // ownership of the Shell. | 48 // ownership of the Shell. |
49 | 49 |
50 // A shell must be explicitly created so that it can call |Init()| with the | 50 // A shell must be explicitly created so that it can call |Init()| with the |
51 // delegate set. |delegate| can be NULL (if not required for initialization). | 51 // delegate set. |delegate| can be NULL (if not required for initialization). |
52 static Shell* CreateInstance(ShellDelegate* delegate); | 52 static Shell* CreateInstance(ShellDelegate* delegate); |
53 | 53 |
54 // Should never be called before |CreateInstance()|. | 54 // Should never be called before |CreateInstance()|. |
55 static Shell* GetInstance(); | 55 static Shell* GetInstance(); |
56 | 56 |
57 static void DeleteInstanceForTesting(); | 57 static void DeleteInstance(); |
58 | 58 |
59 aura::Window* GetContainer(int container_id); | 59 aura::Window* GetContainer(int container_id); |
60 const aura::Window* GetContainer(int container_id) const; | 60 const aura::Window* GetContainer(int container_id) const; |
61 | 61 |
62 // Adds or removes |filter| from the DesktopEventFilter. | 62 // Adds or removes |filter| from the DesktopEventFilter. |
63 void AddDesktopEventFilter(aura::EventFilter* filter); | 63 void AddDesktopEventFilter(aura::EventFilter* filter); |
64 void RemoveDesktopEventFilter(aura::EventFilter* filter); | 64 void RemoveDesktopEventFilter(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(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_; | 119 scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_; |
120 | 120 |
121 scoped_ptr<ShellTooltipManager> tooltip_manager_; | 121 scoped_ptr<ShellTooltipManager> tooltip_manager_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(Shell); | 123 DISALLOW_COPY_AND_ASSIGN(Shell); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace aura_shell | 126 } // namespace aura_shell |
127 | 127 |
128 #endif // UI_AURA_SHELL_SHELL_H_ | 128 #endif // UI_AURA_SHELL_SHELL_H_ |
OLD | NEW |