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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 // Gets/Sets the size of the WindowTreeHost (in pixels). | 163 // Gets/Sets the size of the WindowTreeHost (in pixels). |
164 virtual gfx::Rect GetBounds() const = 0; | 164 virtual gfx::Rect GetBounds() const = 0; |
165 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0; | 165 virtual void SetBounds(const gfx::Rect& bounds_in_pixels) = 0; |
166 | 166 |
167 // Sets the OS capture to the root window. | 167 // Sets the OS capture to the root window. |
168 virtual void SetCapture() = 0; | 168 virtual void SetCapture() = 0; |
169 | 169 |
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 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 174 // Remaps as a normal (i.e. non-override-redirect) window. |
| 175 virtual void RemapAsNormalWindow() = 0; |
| 176 #endif |
| 177 |
173 protected: | 178 protected: |
174 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. | 179 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. |
175 | 180 |
176 WindowTreeHost(); | 181 WindowTreeHost(); |
177 void DestroyCompositor(); | 182 void DestroyCompositor(); |
178 void DestroyDispatcher(); | 183 void DestroyDispatcher(); |
179 | 184 |
180 void CreateCompositor(); | 185 void CreateCompositor(); |
181 void OnAcceleratedWidgetAvailable(); | 186 void OnAcceleratedWidgetAvailable(); |
182 | 187 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 245 |
241 // Whether the InputMethod instance is owned by this WindowTreeHost. | 246 // Whether the InputMethod instance is owned by this WindowTreeHost. |
242 bool owned_input_method_; | 247 bool owned_input_method_; |
243 | 248 |
244 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 249 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
245 }; | 250 }; |
246 | 251 |
247 } // namespace aura | 252 } // namespace aura |
248 | 253 |
249 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 254 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |