| 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.h" | 10 #include "base/message_loop.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Posts |native_event| to the platform's event queue. | 109 // Posts |native_event| to the platform's event queue. |
| 110 #if !defined(OS_MACOSX) | 110 #if !defined(OS_MACOSX) |
| 111 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 111 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
| 112 #endif | 112 #endif |
| 113 | 113 |
| 114 // Called when the device scale factor of the root window has chagned. | 114 // Called when the device scale factor of the root window has chagned. |
| 115 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 115 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
| 116 | 116 |
| 117 // Stop listening events in preparation for shutdown. | 117 // Stop listening events in preparation for shutdown. |
| 118 virtual void PrepareForShutdown() = 0; | 118 virtual void PrepareForShutdown() = 0; |
| 119 |
| 120 // Sets an integer property on the host window using platform-specific means. |
| 121 virtual void SetIntProperty(const std::string& name, int value) = 0; |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 } // namespace aura | 124 } // namespace aura |
| 122 | 125 |
| 123 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 126 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
| OLD | NEW |