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 19 matching lines...) Expand all Loading... |
30 class Size; | 30 class Size; |
31 } | 31 } |
32 | 32 |
33 namespace ui { | 33 namespace ui { |
34 class GestureEventImpl; | 34 class GestureEventImpl; |
35 class GestureRecognizer; | 35 class GestureRecognizer; |
36 class KeyEvent; | 36 class KeyEvent; |
37 class LayerAnimationSequence; | 37 class LayerAnimationSequence; |
38 class MouseEvent; | 38 class MouseEvent; |
39 class ScrollEvent; | 39 class ScrollEvent; |
40 class TouchEventImpl; | 40 class TouchEvent; |
41 class Transform; | 41 class Transform; |
42 } | 42 } |
43 | 43 |
44 namespace aura { | 44 namespace aura { |
45 | 45 |
46 class FocusManager; | 46 class FocusManager; |
47 class RootWindow; | 47 class RootWindow; |
48 class RootWindowHost; | 48 class RootWindowHost; |
49 class RootWindowObserver; | 49 class RootWindowObserver; |
50 | 50 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 private: | 264 private: |
265 friend class Window; | 265 friend class Window; |
266 friend class CompositorLock; | 266 friend class CompositorLock; |
267 | 267 |
268 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, | 268 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, |
269 // sending exited and entered events as its value changes. | 269 // sending exited and entered events as its value changes. |
270 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); | 270 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); |
271 | 271 |
272 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); | 272 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); |
273 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); | 273 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); |
274 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEventImpl* event); | 274 ui::TouchStatus ProcessTouchEvent(Window* target, ui::TouchEvent* event); |
275 ui::GestureStatus ProcessGestureEvent(Window* target, | 275 ui::GestureStatus ProcessGestureEvent(Window* target, |
276 ui::GestureEventImpl* event); | 276 ui::GestureEventImpl* event); |
277 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 277 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
278 | 278 |
279 // Called when a Window is attached or detached from the RootWindow. | 279 // Called when a Window is attached or detached from the RootWindow. |
280 void OnWindowAddedToRootWindow(Window* window); | 280 void OnWindowAddedToRootWindow(Window* window); |
281 void OnWindowRemovedFromRootWindow(Window* window); | 281 void OnWindowRemovedFromRootWindow(Window* window); |
282 | 282 |
283 // Called when a window becomes invisible, either by being removed | 283 // Called when a window becomes invisible, either by being removed |
284 // from root window hierachy, via SetVisible(false) or being destroyed. | 284 // from root window hierachy, via SetVisible(false) or being destroyed. |
(...skipping 22 matching lines...) Expand all Loading... |
307 ui::LayerAnimationSequence* animation) OVERRIDE; | 307 ui::LayerAnimationSequence* animation) OVERRIDE; |
308 virtual void OnLayerAnimationScheduled( | 308 virtual void OnLayerAnimationScheduled( |
309 ui::LayerAnimationSequence* animation) OVERRIDE; | 309 ui::LayerAnimationSequence* animation) OVERRIDE; |
310 virtual void OnLayerAnimationAborted( | 310 virtual void OnLayerAnimationAborted( |
311 ui::LayerAnimationSequence* animation) OVERRIDE; | 311 ui::LayerAnimationSequence* animation) OVERRIDE; |
312 | 312 |
313 // Overridden from aura::RootWindowHostDelegate: | 313 // Overridden from aura::RootWindowHostDelegate: |
314 virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE; | 314 virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE; |
315 virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE; | 315 virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE; |
316 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 316 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
317 virtual bool OnHostTouchEvent(ui::TouchEventImpl* event) OVERRIDE; | 317 virtual bool OnHostTouchEvent(ui::TouchEvent* event) OVERRIDE; |
318 virtual void OnHostLostCapture() OVERRIDE; | 318 virtual void OnHostLostCapture() OVERRIDE; |
319 virtual void OnHostPaint() OVERRIDE; | 319 virtual void OnHostPaint() OVERRIDE; |
320 virtual void OnHostResized(const gfx::Size& size) OVERRIDE; | 320 virtual void OnHostResized(const gfx::Size& size) OVERRIDE; |
321 virtual float GetDeviceScaleFactor() OVERRIDE; | 321 virtual float GetDeviceScaleFactor() OVERRIDE; |
322 virtual RootWindow* AsRootWindow() OVERRIDE; | 322 virtual RootWindow* AsRootWindow() OVERRIDE; |
323 | 323 |
324 // We hold and aggregate mouse drags as a way of throttling resizes when | 324 // We hold and aggregate mouse drags as a way of throttling resizes when |
325 // HoldMouseMoves() is called. The following methods are used to dispatch held | 325 // HoldMouseMoves() is called. The following methods are used to dispatch held |
326 // and newly incoming mouse events, typically when an event other than a mouse | 326 // and newly incoming mouse events, typically when an event other than a mouse |
327 // drag needs dispatching or a matching ReleaseMouseMoves() is called. | 327 // drag needs dispatching or a matching ReleaseMouseMoves() is called. |
(...skipping 70 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 |