| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ROOT_WINDOW_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_H_ |
| 6 #define UI_AURA_ROOT_WINDOW_H_ | 6 #define UI_AURA_ROOT_WINDOW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // Invoked when |window|'s tranfrom has changed. |contained_mouse| | 160 // Invoked when |window|'s tranfrom has changed. |contained_mouse| |
| 161 // indicates if the bounds before change contained the | 161 // indicates if the bounds before change contained the |
| 162 // |last_moust_location()|. | 162 // |last_moust_location()|. |
| 163 void OnWindowTransformed(Window* window, bool contained_mouse); | 163 void OnWindowTransformed(Window* window, bool contained_mouse); |
| 164 | 164 |
| 165 // Invoked when the keyboard mapping (in X11 terms: the mapping between | 165 // Invoked when the keyboard mapping (in X11 terms: the mapping between |
| 166 // keycodes and keysyms) has changed. | 166 // keycodes and keysyms) has changed. |
| 167 void OnKeyboardMappingChanged(); | 167 void OnKeyboardMappingChanged(); |
| 168 | 168 |
| 169 // The system windowing system has sent a request that we close our window. | 169 // The system windowing system has sent a request that we close our window. |
| 170 void OnRootWindowHostClosed(); | 170 void OnRootWindowHostCloseRequested(); |
| 171 | 171 |
| 172 // Add/remove observer. There is no need to remove the observer if | 172 // Add/remove observer. There is no need to remove the observer if |
| 173 // the root window is being deleted. In particular, you SHOULD NOT remove | 173 // the root window is being deleted. In particular, you SHOULD NOT remove |
| 174 // in |WindowObserver::OnWindowDestroying| of the observer observing | 174 // in |WindowObserver::OnWindowDestroying| of the observer observing |
| 175 // the root window because it is too late to remove it. | 175 // the root window because it is too late to remove it. |
| 176 void AddRootWindowObserver(RootWindowObserver* observer); | 176 void AddRootWindowObserver(RootWindowObserver* observer); |
| 177 void RemoveRootWindowObserver(RootWindowObserver* observer); | 177 void RemoveRootWindowObserver(RootWindowObserver* observer); |
| 178 | 178 |
| 179 // Posts |native_event| to the platform's event queue. | 179 // Posts |native_event| to the platform's event queue. |
| 180 void PostNativeEvent(const base::NativeEvent& native_event); | 180 void PostNativeEvent(const base::NativeEvent& native_event); |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 398 |
| 399 CompositorLock* compositor_lock_; | 399 CompositorLock* compositor_lock_; |
| 400 bool draw_on_compositor_unlock_; | 400 bool draw_on_compositor_unlock_; |
| 401 | 401 |
| 402 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 402 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 } // namespace aura | 405 } // namespace aura |
| 406 | 406 |
| 407 #endif // UI_AURA_ROOT_WINDOW_H_ | 407 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |