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_ROOT_WINDOW_HOST_H_ | 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_H_ |
6 #define UI_AURA_ROOT_WINDOW_HOST_H_ | 6 #define UI_AURA_ROOT_WINDOW_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Called when the cursor visibility has changed. | 91 // Called when the cursor visibility has changed. |
92 virtual void OnCursorVisibilityChanged(bool show) = 0; | 92 virtual void OnCursorVisibilityChanged(bool show) = 0; |
93 | 93 |
94 // Moves the cursor to the specified location relative to the root window. | 94 // Moves the cursor to the specified location relative to the root window. |
95 virtual void MoveCursorTo(const gfx::Point& location) = 0; | 95 virtual void MoveCursorTo(const gfx::Point& location) = 0; |
96 | 96 |
97 // Sets if the window should be focused when shown. | 97 // Sets if the window should be focused when shown. |
98 virtual void SetFocusWhenShown(bool focus_when_shown) = 0; | 98 virtual void SetFocusWhenShown(bool focus_when_shown) = 0; |
99 | 99 |
100 // Posts |native_event| to the platform's event queue. | 100 // Posts |native_event| to the platform's event queue. |
101 #if !defined(OS_MACOSX) | |
102 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 101 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
103 #endif | |
104 | 102 |
105 // Called when the device scale factor of the root window has chagned. | 103 // Called when the device scale factor of the root window has chagned. |
106 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 104 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
107 | 105 |
108 // Stop listening events in preparation for shutdown. | 106 // Stop listening events in preparation for shutdown. |
109 virtual void PrepareForShutdown() = 0; | 107 virtual void PrepareForShutdown() = 0; |
110 }; | 108 }; |
111 | 109 |
112 } // namespace aura | 110 } // namespace aura |
113 | 111 |
114 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 112 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
OLD | NEW |