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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const gfx::Rect& snapshot_bounds, | 98 const gfx::Rect& snapshot_bounds, |
99 std::vector<unsigned char>* png_representation) = 0; | 99 std::vector<unsigned char>* png_representation) = 0; |
100 | 100 |
101 // Posts |native_event| to the platform's event queue. | 101 // Posts |native_event| to the platform's event queue. |
102 #if !defined(OS_MACOSX) | 102 #if !defined(OS_MACOSX) |
103 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 103 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
104 #endif | 104 #endif |
105 | 105 |
106 // Called when the device scale factor of the root window has chagned. | 106 // Called when the device scale factor of the root window has chagned. |
107 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 107 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
| 108 |
| 109 // Stop listening events in preparation for shutdown. |
| 110 virtual void StopListeningEvents() = 0; |
108 }; | 111 }; |
109 | 112 |
110 } // namespace aura | 113 } // namespace aura |
111 | 114 |
112 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 115 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
OLD | NEW |