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 11 matching lines...) Expand all Loading... |
22 #include "ui/base/gestures/gesture_recognizer.h" | 22 #include "ui/base/gestures/gesture_recognizer.h" |
23 #include "ui/base/gestures/gesture_types.h" | 23 #include "ui/base/gestures/gesture_types.h" |
24 #include "ui/compositor/compositor.h" | 24 #include "ui/compositor/compositor.h" |
25 #include "ui/compositor/compositor_observer.h" | 25 #include "ui/compositor/compositor_observer.h" |
26 #include "ui/compositor/layer_animation_observer.h" | 26 #include "ui/compositor/layer_animation_observer.h" |
27 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
28 #include "ui/gfx/point.h" | 28 #include "ui/gfx/point.h" |
29 | 29 |
30 namespace gfx { | 30 namespace gfx { |
31 class Size; | 31 class Size; |
| 32 class Transform; |
32 } | 33 } |
33 | 34 |
34 namespace ui { | 35 namespace ui { |
35 class GestureEvent; | 36 class GestureEvent; |
36 class GestureRecognizer; | 37 class GestureRecognizer; |
37 class KeyEvent; | 38 class KeyEvent; |
38 class LayerAnimationSequence; | 39 class LayerAnimationSequence; |
39 class MouseEvent; | 40 class MouseEvent; |
40 class ScrollEvent; | 41 class ScrollEvent; |
41 class TouchEvent; | 42 class TouchEvent; |
42 class Transform; | |
43 class ViewProp; | 43 class ViewProp; |
44 } | 44 } |
45 | 45 |
46 namespace aura { | 46 namespace aura { |
47 | 47 |
48 class FocusManager; | 48 class FocusManager; |
49 class RootWindow; | 49 class RootWindow; |
50 class RootWindowHost; | 50 class RootWindowHost; |
51 class RootWindowObserver; | 51 class RootWindowObserver; |
52 | 52 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 bool GrabSnapshot(const gfx::Rect& snapshot_bounds, | 244 bool GrabSnapshot(const gfx::Rect& snapshot_bounds, |
245 std::vector<unsigned char>* png_representation); | 245 std::vector<unsigned char>* png_representation); |
246 | 246 |
247 // Gets the last location seen in a mouse event in this root window's | 247 // Gets the last location seen in a mouse event in this root window's |
248 // coordinates. This may return a point outside the root window's bounds. | 248 // coordinates. This may return a point outside the root window's bounds. |
249 gfx::Point GetLastMouseLocationInRoot() const; | 249 gfx::Point GetLastMouseLocationInRoot() const; |
250 | 250 |
251 // Overridden from Window: | 251 // Overridden from Window: |
252 virtual RootWindow* GetRootWindow() OVERRIDE; | 252 virtual RootWindow* GetRootWindow() OVERRIDE; |
253 virtual const RootWindow* GetRootWindow() const OVERRIDE; | 253 virtual const RootWindow* GetRootWindow() const OVERRIDE; |
254 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 254 virtual void SetTransform(const gfx::Transform& transform) OVERRIDE; |
255 | 255 |
256 // Overridden from ui::EventTarget: | 256 // Overridden from ui::EventTarget: |
257 virtual ui::EventTarget* GetParentTarget() OVERRIDE; | 257 virtual ui::EventTarget* GetParentTarget() OVERRIDE; |
258 | 258 |
259 // Overridden from ui::CompositorDelegate: | 259 // Overridden from ui::CompositorDelegate: |
260 virtual void ScheduleDraw() OVERRIDE; | 260 virtual void ScheduleDraw() OVERRIDE; |
261 | 261 |
262 // Overridden from ui::CompositorObserver: | 262 // Overridden from ui::CompositorObserver: |
263 virtual void OnCompositingDidCommit(ui::Compositor*) OVERRIDE; | 263 virtual void OnCompositingDidCommit(ui::Compositor*) OVERRIDE; |
264 virtual void OnCompositingWillStart(ui::Compositor*) OVERRIDE; | 264 virtual void OnCompositingWillStart(ui::Compositor*) OVERRIDE; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 CompositorLock* compositor_lock_; | 411 CompositorLock* compositor_lock_; |
412 bool draw_on_compositor_unlock_; | 412 bool draw_on_compositor_unlock_; |
413 | 413 |
414 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 414 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
415 }; | 415 }; |
416 | 416 |
417 } // namespace aura | 417 } // namespace aura |
418 | 418 |
419 #endif // UI_AURA_ROOT_WINDOW_H_ | 419 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |