| 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_WINDOW_TREE_HOST_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "ui/aura/aura_export.h" | 12 #include "ui/aura/aura_export.h" |
| 13 #include "ui/base/cursor/cursor.h" | 13 #include "ui/base/cursor/cursor.h" |
| 14 #include "ui/events/event_source.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
| 15 | 16 |
| 16 namespace gfx { | 17 namespace gfx { |
| 17 class Insets; | 18 class Insets; |
| 18 class Point; | 19 class Point; |
| 19 class Rect; | 20 class Rect; |
| 20 class Size; | 21 class Size; |
| 21 class Transform; | 22 class Transform; |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 ui::EventProcessor* event_processor(); | 59 ui::EventProcessor* event_processor(); |
| 59 | 60 |
| 60 WindowEventDispatcher* dispatcher() { | 61 WindowEventDispatcher* dispatcher() { |
| 61 return const_cast<WindowEventDispatcher*>( | 62 return const_cast<WindowEventDispatcher*>( |
| 62 const_cast<const WindowTreeHost*>(this)->dispatcher()); | 63 const_cast<const WindowTreeHost*>(this)->dispatcher()); |
| 63 } | 64 } |
| 64 const WindowEventDispatcher* dispatcher() const { return dispatcher_.get(); } | 65 const WindowEventDispatcher* dispatcher() const { return dispatcher_.get(); } |
| 65 | 66 |
| 66 ui::Compositor* compositor() { return compositor_.get(); } | 67 ui::Compositor* compositor() { return compositor_.get(); } |
| 67 | 68 |
| 69 virtual ui::EventSource* GetEventSource() = 0; |
| 70 |
| 68 // Gets/Sets the root window's transform. | 71 // Gets/Sets the root window's transform. |
| 69 virtual gfx::Transform GetRootTransform() const; | 72 virtual gfx::Transform GetRootTransform() const; |
| 70 virtual void SetRootTransform(const gfx::Transform& transform); | 73 virtual void SetRootTransform(const gfx::Transform& transform); |
| 71 virtual gfx::Transform GetInverseRootTransform() const; | 74 virtual gfx::Transform GetInverseRootTransform() const; |
| 72 | 75 |
| 73 // Updates the root window's size using |host_size|, current | 76 // Updates the root window's size using |host_size|, current |
| 74 // transform and insets. | 77 // transform and insets. |
| 75 virtual void UpdateRootWindowSize(const gfx::Size& host_size); | 78 virtual void UpdateRootWindowSize(const gfx::Size& host_size); |
| 76 | 79 |
| 77 // Returns the actual size of the screen. | 80 // Returns the actual size of the screen. |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 gfx::NativeCursor last_cursor_; | 196 gfx::NativeCursor last_cursor_; |
| 194 | 197 |
| 195 scoped_ptr<ui::ViewProp> prop_; | 198 scoped_ptr<ui::ViewProp> prop_; |
| 196 | 199 |
| 197 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 200 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 198 }; | 201 }; |
| 199 | 202 |
| 200 } // namespace aura | 203 } // namespace aura |
| 201 | 204 |
| 202 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 205 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |