| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 void DestroyDispatcher(); | 187 void DestroyDispatcher(); |
| 188 | 188 |
| 189 void CreateCompositor(); | 189 void CreateCompositor(); |
| 190 void OnAcceleratedWidgetAvailable(); | 190 void OnAcceleratedWidgetAvailable(); |
| 191 | 191 |
| 192 // Returns the location of the RootWindow on native screen. | 192 // Returns the location of the RootWindow on native screen. |
| 193 virtual gfx::Point GetLocationOnNativeScreen() const = 0; | 193 virtual gfx::Point GetLocationOnNativeScreen() const = 0; |
| 194 | 194 |
| 195 void OnHostMoved(const gfx::Point& new_location); | 195 void OnHostMoved(const gfx::Point& new_location); |
| 196 void OnHostResized(const gfx::Size& new_size); | 196 void OnHostResized(const gfx::Size& new_size); |
| 197 void OnHostWorkspaceChanged(); |
| 197 void OnHostCloseRequested(); | 198 void OnHostCloseRequested(); |
| 198 void OnHostActivated(); | 199 void OnHostActivated(); |
| 199 void OnHostLostWindowCapture(); | 200 void OnHostLostWindowCapture(); |
| 200 | 201 |
| 201 // Sets the currently displayed cursor. | 202 // Sets the currently displayed cursor. |
| 202 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; | 203 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; |
| 203 | 204 |
| 204 // Moves the cursor to the specified location relative to the root window. | 205 // Moves the cursor to the specified location relative to the root window. |
| 205 virtual void MoveCursorToNative(const gfx::Point& location) = 0; | 206 virtual void MoveCursorToNative(const gfx::Point& location) = 0; |
| 206 | 207 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 bool owned_input_method_; | 252 bool owned_input_method_; |
| 252 | 253 |
| 253 gfx::Insets output_surface_padding_; | 254 gfx::Insets output_surface_padding_; |
| 254 | 255 |
| 255 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 256 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 } // namespace aura | 259 } // namespace aura |
| 259 | 260 |
| 260 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 261 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |