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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 // Deactivates |window| and activates the topmost window. Does nothing if | 105 // Deactivates |window| and activates the topmost window. Does nothing if |
106 // |window| is not a topmost window, or there are no other suitable windows to | 106 // |window| is not a topmost window, or there are no other suitable windows to |
107 // activate. | 107 // activate. |
108 void Deactivate(Window* window); | 108 void Deactivate(Window* window); |
109 | 109 |
110 // Invoked when |window| is being destroyed. | 110 // Invoked when |window| is being destroyed. |
111 void WindowDestroying(Window* window); | 111 void WindowDestroying(Window* window); |
112 | 112 |
113 // Returns the desktop's dispatcher. The result should only be passed to | 113 // Returns the desktop's dispatcher. The result should only be passed to |
114 // MessageLoopForUI::Run() or MessageLoopForUI::RunAllPendingWithDispatcher(), | 114 // MessageLoopForUI::RunWithDispatcher() or |
115 // or used to dispatch an event by |Dispatch(const NativeEvent&)| on it. | 115 // MessageLoopForUI::RunAllPendingWithDispatcher(), or used to dispatch |
116 // It must never be stored. | 116 // an event by |Dispatch(const NativeEvent&)| on it. It must never be stored. |
117 MessageLoop::Dispatcher* GetDispatcher(); | 117 MessageLoop::Dispatcher* GetDispatcher(); |
118 | 118 |
119 // Add/remove observer. | 119 // Add/remove observer. |
120 void AddObserver(DesktopObserver* observer); | 120 void AddObserver(DesktopObserver* observer); |
121 void RemoveObserver(DesktopObserver* observer); | 121 void RemoveObserver(DesktopObserver* observer); |
122 | 122 |
123 // Capture ------------------------------------------------------------------- | 123 // Capture ------------------------------------------------------------------- |
124 | 124 |
125 // Sets capture to the specified window. | 125 // Sets capture to the specified window. |
126 void SetCapture(Window* window); | 126 void SetCapture(Window* window); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 Window* mouse_moved_handler_; | 194 Window* mouse_moved_handler_; |
195 Window* focused_window_; | 195 Window* focused_window_; |
196 Window* touch_event_handler_; | 196 Window* touch_event_handler_; |
197 | 197 |
198 DISALLOW_COPY_AND_ASSIGN(Desktop); | 198 DISALLOW_COPY_AND_ASSIGN(Desktop); |
199 }; | 199 }; |
200 | 200 |
201 } // namespace aura | 201 } // namespace aura |
202 | 202 |
203 #endif // UI_AURA_DESKTOP_H_ | 203 #endif // UI_AURA_DESKTOP_H_ |
OLD | NEW |