| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 friend class Window; | 273 friend class Window; |
| 274 friend class CompositorLock; | 274 friend class CompositorLock; |
| 275 | 275 |
| 276 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 276 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
| 277 // sending exited and entered events as its value changes. | 277 // sending exited and entered events as its value changes. |
| 278 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); | 278 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); |
| 279 | 279 |
| 280 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); | 280 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); |
| 281 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); | 281 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); |
| 282 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEvent* event); | 282 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEvent* event); |
| 283 ui::GestureStatus ProcessGestureEvent(Window* target, | 283 ui::EventResult ProcessGestureEvent(Window* target, |
| 284 ui::GestureEvent* event); | 284 ui::GestureEvent* event); |
| 285 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 285 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
| 286 | 286 |
| 287 // Called when a Window is attached or detached from the RootWindow. | 287 // Called when a Window is attached or detached from the RootWindow. |
| 288 void OnWindowAddedToRootWindow(Window* window); | 288 void OnWindowAddedToRootWindow(Window* window); |
| 289 void OnWindowRemovedFromRootWindow(Window* window); | 289 void OnWindowRemovedFromRootWindow(Window* window); |
| 290 | 290 |
| 291 // Called when a window becomes invisible, either by being removed | 291 // Called when a window becomes invisible, either by being removed |
| 292 // from root window hierachy, via SetVisible(false) or being destroyed. | 292 // from root window hierachy, via SetVisible(false) or being destroyed. |
| 293 // |destroyed| is set to true when the window is being destroyed. | 293 // |destroyed| is set to true when the window is being destroyed. |
| 294 void OnWindowHidden(Window* invisible, bool destroyed); | 294 void OnWindowHidden(Window* invisible, bool destroyed); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 401 |
| 402 CompositorLock* compositor_lock_; | 402 CompositorLock* compositor_lock_; |
| 403 bool draw_on_compositor_unlock_; | 403 bool draw_on_compositor_unlock_; |
| 404 | 404 |
| 405 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 405 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 406 }; | 406 }; |
| 407 | 407 |
| 408 } // namespace aura | 408 } // namespace aura |
| 409 | 409 |
| 410 #endif // UI_AURA_ROOT_WINDOW_H_ | 410 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |