| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 149 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); |
| 150 | 150 |
| 151 // Returns the location of the RootWindow on native screen. | 151 // Returns the location of the RootWindow on native screen. |
| 152 virtual gfx::Point GetLocationOnNativeScreen() const = 0; | 152 virtual gfx::Point GetLocationOnNativeScreen() const = 0; |
| 153 | 153 |
| 154 void OnHostMoved(const gfx::Point& new_location); | 154 void OnHostMoved(const gfx::Point& new_location); |
| 155 void OnHostResized(const gfx::Size& new_size); | 155 void OnHostResized(const gfx::Size& new_size); |
| 156 void OnHostCloseRequested(); | 156 void OnHostCloseRequested(); |
| 157 void OnHostActivated(); | 157 void OnHostActivated(); |
| 158 void OnHostLostWindowCapture(); | 158 void OnHostLostWindowCapture(); |
| 159 void OnHostSetWindowVisibility(bool visible); |
| 159 | 160 |
| 160 // Sets the currently displayed cursor. | 161 // Sets the currently displayed cursor. |
| 161 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; | 162 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; |
| 162 | 163 |
| 163 // Moves the cursor to the specified location relative to the root window. | 164 // Moves the cursor to the specified location relative to the root window. |
| 164 virtual void MoveCursorToNative(const gfx::Point& location) = 0; | 165 virtual void MoveCursorToNative(const gfx::Point& location) = 0; |
| 165 | 166 |
| 166 // kCalled when the cursor visibility has changed. | 167 // kCalled when the cursor visibility has changed. |
| 167 virtual void OnCursorVisibilityChangedNative(bool show) = 0; | 168 virtual void OnCursorVisibilityChangedNative(bool show) = 0; |
| 168 | 169 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 191 gfx::Point last_cursor_request_position_in_host_; | 192 gfx::Point last_cursor_request_position_in_host_; |
| 192 | 193 |
| 193 scoped_ptr<ui::ViewProp> prop_; | 194 scoped_ptr<ui::ViewProp> prop_; |
| 194 | 195 |
| 195 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 196 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 196 }; | 197 }; |
| 197 | 198 |
| 198 } // namespace aura | 199 } // namespace aura |
| 199 | 200 |
| 200 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 201 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |