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" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Gets/Sets the size of the WindowTreeHost. | 132 // Gets/Sets the size of the WindowTreeHost. |
133 virtual gfx::Rect GetBounds() const = 0; | 133 virtual gfx::Rect GetBounds() const = 0; |
134 virtual void SetBounds(const gfx::Rect& bounds) = 0; | 134 virtual void SetBounds(const gfx::Rect& bounds) = 0; |
135 | 135 |
136 // Sets the OS capture to the root window. | 136 // Sets the OS capture to the root window. |
137 virtual void SetCapture() = 0; | 137 virtual void SetCapture() = 0; |
138 | 138 |
139 // Releases OS capture of the root window. | 139 // Releases OS capture of the root window. |
140 virtual void ReleaseCapture() = 0; | 140 virtual void ReleaseCapture() = 0; |
141 | 141 |
142 // Posts |native_event| to the platform's event queue. | |
143 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | |
144 | |
145 protected: | 142 protected: |
146 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. | 143 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. |
147 | 144 |
148 WindowTreeHost(); | 145 WindowTreeHost(); |
149 void DestroyCompositor(); | 146 void DestroyCompositor(); |
150 void DestroyDispatcher(); | 147 void DestroyDispatcher(); |
151 | 148 |
152 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 149 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); |
153 | 150 |
154 // Returns the location of the RootWindow on native screen. | 151 // Returns the location of the RootWindow on native screen. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 gfx::Point last_cursor_request_position_in_host_; | 191 gfx::Point last_cursor_request_position_in_host_; |
195 | 192 |
196 scoped_ptr<ui::ViewProp> prop_; | 193 scoped_ptr<ui::ViewProp> prop_; |
197 | 194 |
198 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 195 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
199 }; | 196 }; |
200 | 197 |
201 } // namespace aura | 198 } // namespace aura |
202 | 199 |
203 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 200 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |