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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 void DestroyDispatcher(); | 178 void DestroyDispatcher(); |
179 | 179 |
180 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 180 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); |
181 | 181 |
182 // Returns the location of the RootWindow on native screen. | 182 // Returns the location of the RootWindow on native screen. |
183 virtual gfx::Point GetLocationOnNativeScreen() const = 0; | 183 virtual gfx::Point GetLocationOnNativeScreen() const = 0; |
184 | 184 |
185 void OnHostMoved(const gfx::Point& new_location); | 185 void OnHostMoved(const gfx::Point& new_location); |
186 void OnHostResized(const gfx::Size& new_size); | 186 void OnHostResized(const gfx::Size& new_size); |
187 void OnHostCloseRequested(); | 187 void OnHostCloseRequested(); |
188 void OnKeyboardMappingChanged(); | |
189 | 188 |
190 // Sets the currently displayed cursor. | 189 // Sets the currently displayed cursor. |
191 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; | 190 virtual void SetCursorNative(gfx::NativeCursor cursor) = 0; |
192 | 191 |
193 // Moves the cursor to the specified location relative to the root window. | 192 // Moves the cursor to the specified location relative to the root window. |
194 virtual void MoveCursorToNative(const gfx::Point& location) = 0; | 193 virtual void MoveCursorToNative(const gfx::Point& location) = 0; |
195 | 194 |
196 // kCalled when the cursor visibility has changed. | 195 // kCalled when the cursor visibility has changed. |
197 virtual void OnCursorVisibilityChangedNative(bool show) = 0; | 196 virtual void OnCursorVisibilityChangedNative(bool show) = 0; |
198 | 197 |
(...skipping 23 matching lines...) Expand all Loading... |
222 gfx::NativeCursor last_cursor_; | 221 gfx::NativeCursor last_cursor_; |
223 | 222 |
224 scoped_ptr<ui::ViewProp> prop_; | 223 scoped_ptr<ui::ViewProp> prop_; |
225 | 224 |
226 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 225 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
227 }; | 226 }; |
228 | 227 |
229 } // namespace aura | 228 } // namespace aura |
230 | 229 |
231 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 230 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |