| 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 class AURA_EXPORT RootWindow : public ui::CompositorDelegate, | 77 class AURA_EXPORT RootWindow : public ui::CompositorDelegate, |
| 78 public ui::CompositorObserver, | 78 public ui::CompositorObserver, |
| 79 public Window, | 79 public Window, |
| 80 public ui::GestureEventHelper, | 80 public ui::GestureEventHelper, |
| 81 public ui::LayerAnimationObserver, | 81 public ui::LayerAnimationObserver, |
| 82 public aura::client::CaptureDelegate { | 82 public aura::client::CaptureDelegate { |
| 83 public: | 83 public: |
| 84 explicit RootWindow(const gfx::Rect& initial_bounds); | 84 explicit RootWindow(const gfx::Rect& initial_bounds); |
| 85 virtual ~RootWindow(); | 85 virtual ~RootWindow(); |
| 86 | 86 |
| 87 static RootWindow* GetForAcceleratedWidget(gfx::AcceleratedWidget widget); |
| 88 |
| 87 static void set_hide_host_cursor(bool hide) { | 89 static void set_hide_host_cursor(bool hide) { |
| 88 hide_host_cursor_ = hide; | 90 hide_host_cursor_ = hide; |
| 89 } | 91 } |
| 90 static bool hide_host_cursor() { | 92 static bool hide_host_cursor() { |
| 91 return hide_host_cursor_; | 93 return hide_host_cursor_; |
| 92 } | 94 } |
| 93 | 95 |
| 94 ui::Compositor* compositor() { return compositor_.get(); } | 96 ui::Compositor* compositor() { return compositor_.get(); } |
| 95 gfx::Point last_mouse_location() const { return last_mouse_location_; } | 97 gfx::Point last_mouse_location() const { return last_mouse_location_; } |
| 96 gfx::NativeCursor last_cursor() const { return last_cursor_; } | 98 gfx::NativeCursor last_cursor() const { return last_cursor_; } |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 396 |
| 395 CompositorLock* compositor_lock_; | 397 CompositorLock* compositor_lock_; |
| 396 bool draw_on_compositor_unlock_; | 398 bool draw_on_compositor_unlock_; |
| 397 | 399 |
| 398 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 400 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 399 }; | 401 }; |
| 400 | 402 |
| 401 } // namespace aura | 403 } // namespace aura |
| 402 | 404 |
| 403 #endif // UI_AURA_ROOT_WINDOW_H_ | 405 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |