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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 virtual void OnLayerAnimationScheduled( | 324 virtual void OnLayerAnimationScheduled( |
325 ui::LayerAnimationSequence* animation) OVERRIDE; | 325 ui::LayerAnimationSequence* animation) OVERRIDE; |
326 virtual void OnLayerAnimationAborted( | 326 virtual void OnLayerAnimationAborted( |
327 ui::LayerAnimationSequence* animation) OVERRIDE; | 327 ui::LayerAnimationSequence* animation) OVERRIDE; |
328 | 328 |
329 // Overridden from aura::RootWindowHostDelegate: | 329 // Overridden from aura::RootWindowHostDelegate: |
330 virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE; | 330 virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE; |
331 virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE; | 331 virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE; |
332 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 332 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
333 virtual bool OnHostTouchEvent(ui::TouchEvent* event) OVERRIDE; | 333 virtual bool OnHostTouchEvent(ui::TouchEvent* event) OVERRIDE; |
334 virtual void OnHostLostCapture() OVERRIDE; | 334 virtual void OnHostLostWindowCapture() OVERRIDE; |
| 335 virtual void OnHostLostMouseGrab() OVERRIDE; |
335 virtual void OnHostPaint() OVERRIDE; | 336 virtual void OnHostPaint() OVERRIDE; |
336 virtual void OnHostMoved(const gfx::Point& origin) OVERRIDE; | 337 virtual void OnHostMoved(const gfx::Point& origin) OVERRIDE; |
337 virtual void OnHostResized(const gfx::Size& size) OVERRIDE; | 338 virtual void OnHostResized(const gfx::Size& size) OVERRIDE; |
338 virtual float GetDeviceScaleFactor() OVERRIDE; | 339 virtual float GetDeviceScaleFactor() OVERRIDE; |
339 virtual RootWindow* AsRootWindow() OVERRIDE; | 340 virtual RootWindow* AsRootWindow() OVERRIDE; |
340 | 341 |
341 // We hold and aggregate mouse drags as a way of throttling resizes when | 342 // We hold and aggregate mouse drags as a way of throttling resizes when |
342 // HoldMouseMoves() is called. The following methods are used to dispatch held | 343 // HoldMouseMoves() is called. The following methods are used to dispatch held |
343 // and newly incoming mouse events, typically when an event other than a mouse | 344 // and newly incoming mouse events, typically when an event other than a mouse |
344 // drag needs dispatching or a matching ReleaseMouseMoves() is called. | 345 // drag needs dispatching or a matching ReleaseMouseMoves() is called. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 | 412 |
412 CompositorLock* compositor_lock_; | 413 CompositorLock* compositor_lock_; |
413 bool draw_on_compositor_unlock_; | 414 bool draw_on_compositor_unlock_; |
414 | 415 |
415 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 416 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
416 }; | 417 }; |
417 | 418 |
418 } // namespace aura | 419 } // namespace aura |
419 | 420 |
420 #endif // UI_AURA_ROOT_WINDOW_H_ | 421 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |