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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Releases OS capture of the root window. | 170 // Releases OS capture of the root window. |
171 virtual void ReleaseCapture() = 0; | 171 virtual void ReleaseCapture() = 0; |
172 | 172 |
173 protected: | 173 protected: |
174 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. | 174 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. |
175 | 175 |
176 WindowTreeHost(); | 176 WindowTreeHost(); |
177 void DestroyCompositor(); | 177 void DestroyCompositor(); |
178 void DestroyDispatcher(); | 178 void DestroyDispatcher(); |
179 | 179 |
180 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 180 void CreateCompositor(); |
| 181 void OnAcceleratedWidgetAvailable(); |
181 | 182 |
182 // Returns the location of the RootWindow on native screen. | 183 // Returns the location of the RootWindow on native screen. |
183 virtual gfx::Point GetLocationOnNativeScreen() const = 0; | 184 virtual gfx::Point GetLocationOnNativeScreen() const = 0; |
184 | 185 |
185 void OnHostMoved(const gfx::Point& new_location); | 186 void OnHostMoved(const gfx::Point& new_location); |
186 void OnHostResized(const gfx::Size& new_size); | 187 void OnHostResized(const gfx::Size& new_size); |
187 void OnHostCloseRequested(); | 188 void OnHostCloseRequested(); |
188 void OnHostActivated(); | 189 void OnHostActivated(); |
189 void OnHostLostWindowCapture(); | 190 void OnHostLostWindowCapture(); |
190 | 191 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 240 |
240 // Whether the InputMethod instance is owned by this WindowTreeHost. | 241 // Whether the InputMethod instance is owned by this WindowTreeHost. |
241 bool owned_input_method_; | 242 bool owned_input_method_; |
242 | 243 |
243 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 244 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
244 }; | 245 }; |
245 | 246 |
246 } // namespace aura | 247 } // namespace aura |
247 | 248 |
248 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 249 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |