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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 private: | 283 private: |
284 friend class Window; | 284 friend class Window; |
285 friend class CompositorLock; | 285 friend class CompositorLock; |
286 | 286 |
287 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 287 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
288 // sending exited and entered events as its value changes. | 288 // sending exited and entered events as its value changes. |
289 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); | 289 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); |
290 | 290 |
291 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); | 291 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); |
292 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); | 292 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); |
293 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEvent* event); | 293 ui::EventResult ProcessTouchEvent(Window* target, ui::TouchEvent* event); |
294 ui::EventResult ProcessGestureEvent(Window* target, | 294 ui::EventResult ProcessGestureEvent(Window* target, |
295 ui::GestureEvent* event); | 295 ui::GestureEvent* event); |
296 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 296 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
297 | 297 |
298 // Called when a Window is attached or detached from the RootWindow. | 298 // Called when a Window is attached or detached from the RootWindow. |
299 void OnWindowAddedToRootWindow(Window* window); | 299 void OnWindowAddedToRootWindow(Window* window); |
300 void OnWindowRemovedFromRootWindow(Window* window); | 300 void OnWindowRemovedFromRootWindow(Window* window); |
301 | 301 |
302 // Called when a window becomes invisible, either by being removed | 302 // Called when a window becomes invisible, either by being removed |
303 // from root window hierachy, via SetVisible(false) or being destroyed. | 303 // from root window hierachy, via SetVisible(false) or being destroyed. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 | 411 |
412 CompositorLock* compositor_lock_; | 412 CompositorLock* compositor_lock_; |
413 bool draw_on_compositor_unlock_; | 413 bool draw_on_compositor_unlock_; |
414 | 414 |
415 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 415 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
416 }; | 416 }; |
417 | 417 |
418 } // namespace aura | 418 } // namespace aura |
419 | 419 |
420 #endif // UI_AURA_ROOT_WINDOW_H_ | 420 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |