| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 // Grabs the snapshot of the root window by using the platform-dependent APIs. | 93 // Grabs the snapshot of the root window by using the platform-dependent APIs. |
| 94 virtual bool GrabSnapshot( | 94 virtual bool GrabSnapshot( |
| 95 const gfx::Rect& snapshot_bounds, | 95 const gfx::Rect& snapshot_bounds, |
| 96 std::vector<unsigned char>* png_representation) = 0; | 96 std::vector<unsigned char>* png_representation) = 0; |
| 97 | 97 |
| 98 // Posts |native_event| to the platform's event queue. | 98 // Posts |native_event| to the platform's event queue. |
| 99 #if !defined(OS_MACOSX) | 99 #if !defined(OS_MACOSX) |
| 100 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 100 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
| 101 #endif | 101 #endif |
| 102 |
| 103 // Called when the device scale factor of the root window has chagned. |
| 104 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 } // namespace aura | 107 } // namespace aura |
| 105 | 108 |
| 106 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ | 109 #endif // UI_AURA_ROOT_WINDOW_HOST_H_ |
| OLD | NEW |