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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Sets the OS capture to the root window. | 136 // Sets the OS capture to the root window. |
137 virtual void SetCapture() = 0; | 137 virtual void SetCapture() = 0; |
138 | 138 |
139 // Releases OS capture of the root window. | 139 // Releases OS capture of the root window. |
140 virtual void ReleaseCapture() = 0; | 140 virtual void ReleaseCapture() = 0; |
141 | 141 |
142 // Posts |native_event| to the platform's event queue. | 142 // Posts |native_event| to the platform's event queue. |
143 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 143 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
144 | 144 |
145 // Called when the device scale factor of the root window has chagned. | |
146 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | |
147 | |
148 protected: | 145 protected: |
149 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. | 146 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. |
150 | 147 |
151 WindowTreeHost(); | 148 WindowTreeHost(); |
152 void DestroyCompositor(); | 149 void DestroyCompositor(); |
153 void DestroyDispatcher(); | 150 void DestroyDispatcher(); |
154 | 151 |
155 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 152 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); |
156 | 153 |
157 // Returns the location of the RootWindow on native screen. | 154 // Returns the location of the RootWindow on native screen. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 gfx::Point last_cursor_request_position_in_host_; | 194 gfx::Point last_cursor_request_position_in_host_; |
198 | 195 |
199 scoped_ptr<ui::ViewProp> prop_; | 196 scoped_ptr<ui::ViewProp> prop_; |
200 | 197 |
201 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 198 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
202 }; | 199 }; |
203 | 200 |
204 } // namespace aura | 201 } // namespace aura |
205 | 202 |
206 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 203 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
OLD | NEW |