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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "ui/aura/aura_export.h" | 13 #include "ui/aura/aura_export.h" |
14 #include "ui/aura/cursor.h" | 14 #include "ui/aura/cursor.h" |
15 #include "ui/aura/focus_manager.h" | 15 #include "ui/aura/focus_manager.h" |
16 #include "ui/aura/gestures/gesture_recognizer.h" | 16 #include "ui/aura/gestures/gesture_recognizer.h" |
| 17 #include "ui/aura/root_window_host.h" |
17 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
18 #include "ui/base/events.h" | 19 #include "ui/base/events.h" |
19 #include "ui/gfx/compositor/compositor.h" | 20 #include "ui/gfx/compositor/compositor.h" |
20 #include "ui/gfx/compositor/compositor_observer.h" | 21 #include "ui/gfx/compositor/compositor_observer.h" |
21 #include "ui/gfx/compositor/layer_animation_observer.h" | 22 #include "ui/gfx/compositor/layer_animation_observer.h" |
22 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
23 #include "ui/gfx/point.h" | 24 #include "ui/gfx/point.h" |
24 | 25 |
25 namespace gfx { | 26 namespace gfx { |
26 class Size; | 27 class Size; |
27 } | 28 } |
28 | 29 |
29 namespace ui { | 30 namespace ui { |
30 class LayerAnimationSequence; | 31 class LayerAnimationSequence; |
31 class Transform; | 32 class Transform; |
32 } | 33 } |
33 | 34 |
34 namespace aura { | 35 namespace aura { |
35 | 36 |
36 class RootWindowHost; | |
37 class RootWindowObserver; | 37 class RootWindowObserver; |
38 class KeyEvent; | 38 class KeyEvent; |
39 class MouseEvent; | 39 class MouseEvent; |
40 class ScreenAura; | 40 class ScreenAura; |
41 class StackingClient; | 41 class StackingClient; |
42 class ScrollEvent; | 42 class ScrollEvent; |
43 class TouchEvent; | 43 class TouchEvent; |
44 class GestureEvent; | 44 class GestureEvent; |
45 | 45 |
46 // RootWindow is responsible for hosting a set of windows. | 46 // RootWindow is responsible for hosting a set of windows. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 void SetGestureRecognizerForTesting(GestureRecognizer* gr); | 183 void SetGestureRecognizerForTesting(GestureRecognizer* gr); |
184 | 184 |
185 // Returns the accelerated widget from the RootWindowHost. | 185 // Returns the accelerated widget from the RootWindowHost. |
186 gfx::AcceleratedWidget GetAcceleratedWidget(); | 186 gfx::AcceleratedWidget GetAcceleratedWidget(); |
187 | 187 |
188 #if !defined(NDEBUG) | 188 #if !defined(NDEBUG) |
189 // Toggles the host's full screen state. | 189 // Toggles the host's full screen state. |
190 void ToggleFullScreen(); | 190 void ToggleFullScreen(); |
191 #endif | 191 #endif |
192 | 192 |
| 193 // Accesses the native window handle living in the RootWindowHost instance |
| 194 // associated with this instance. |
| 195 NativeHandle GetNativeWindow() const; |
| 196 |
193 // Overridden from Window: | 197 // Overridden from Window: |
194 virtual RootWindow* GetRootWindow() OVERRIDE; | 198 virtual RootWindow* GetRootWindow() OVERRIDE; |
195 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; | 199 virtual void SetTransform(const ui::Transform& transform) OVERRIDE; |
196 | 200 |
197 // Overridden from ui::CompositorDelegate: | 201 // Overridden from ui::CompositorDelegate: |
198 virtual void ScheduleDraw() OVERRIDE; | 202 virtual void ScheduleDraw() OVERRIDE; |
199 | 203 |
200 // Overridden from ui::CompositorObserver: | 204 // Overridden from ui::CompositorObserver: |
201 virtual void OnCompositingEnded(ui::Compositor*) OVERRIDE; | 205 virtual void OnCompositingEnded(ui::Compositor*) OVERRIDE; |
202 | 206 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 bool synthesize_mouse_move_; | 317 bool synthesize_mouse_move_; |
314 bool waiting_on_compositing_end_; | 318 bool waiting_on_compositing_end_; |
315 bool draw_on_compositing_end_; | 319 bool draw_on_compositing_end_; |
316 | 320 |
317 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 321 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
318 }; | 322 }; |
319 | 323 |
320 } // namespace aura | 324 } // namespace aura |
321 | 325 |
322 #endif // UI_AURA_ROOT_WINDOW_H_ | 326 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |