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_DESKTOP_H_ | 5 #ifndef UI_AURA_DESKTOP_H_ |
6 #define UI_AURA_DESKTOP_H_ | 6 #define UI_AURA_DESKTOP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Activates the topmost window. Does nothing if the topmost window is already | 103 // Activates the topmost window. Does nothing if the topmost window is already |
104 // active. | 104 // active. |
105 void ActivateTopmostWindow(); | 105 void ActivateTopmostWindow(); |
106 | 106 |
107 // Deactivates |window| and activates the topmost window. Does nothing if | 107 // Deactivates |window| and activates the topmost window. Does nothing if |
108 // |window| is not a topmost window, or there are no other suitable windows to | 108 // |window| is not a topmost window, or there are no other suitable windows to |
109 // activate. | 109 // activate. |
110 void Deactivate(Window* window); | 110 void Deactivate(Window* window); |
111 | 111 |
| 112 // Invoked when |window| is initialized. |
| 113 void WindowInitialized(Window* window); |
| 114 |
112 // Invoked when |window| is being destroyed. | 115 // Invoked when |window| is being destroyed. |
113 void WindowDestroying(Window* window); | 116 void WindowDestroying(Window* window); |
114 | 117 |
115 // Returns the desktop's dispatcher. The result should only be passed to | 118 // Returns the desktop's dispatcher. The result should only be passed to |
116 // MessageLoopForUI::RunWithDispatcher() or | 119 // MessageLoopForUI::RunWithDispatcher() or |
117 // MessageLoopForUI::RunAllPendingWithDispatcher(), or used to dispatch | 120 // MessageLoopForUI::RunAllPendingWithDispatcher(), or used to dispatch |
118 // an event by |Dispatch(const NativeEvent&)| on it. It must never be stored. | 121 // an event by |Dispatch(const NativeEvent&)| on it. It must never be stored. |
119 MessageLoop::Dispatcher* GetDispatcher(); | 122 MessageLoop::Dispatcher* GetDispatcher(); |
120 | 123 |
121 // Add/remove observer. | 124 // Add/remove observer. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 Window* mouse_moved_handler_; | 223 Window* mouse_moved_handler_; |
221 Window* focused_window_; | 224 Window* focused_window_; |
222 Window* touch_event_handler_; | 225 Window* touch_event_handler_; |
223 | 226 |
224 DISALLOW_COPY_AND_ASSIGN(Desktop); | 227 DISALLOW_COPY_AND_ASSIGN(Desktop); |
225 }; | 228 }; |
226 | 229 |
227 } // namespace aura | 230 } // namespace aura |
228 | 231 |
229 #endif // UI_AURA_DESKTOP_H_ | 232 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |