| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // being used in fullscreen mode, so root_window bounds = window bounds. | 156 // being used in fullscreen mode, so root_window bounds = window bounds. |
| 157 virtual bool ConfineCursorToRootWindow() = 0; | 157 virtual bool ConfineCursorToRootWindow() = 0; |
| 158 virtual void UnConfineCursor() = 0; | 158 virtual void UnConfineCursor() = 0; |
| 159 | 159 |
| 160 // Posts |native_event| to the platform's event queue. | 160 // Posts |native_event| to the platform's event queue. |
| 161 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; | 161 virtual void PostNativeEvent(const base::NativeEvent& native_event) = 0; |
| 162 | 162 |
| 163 // Called when the device scale factor of the root window has chagned. | 163 // Called when the device scale factor of the root window has chagned. |
| 164 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; | 164 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) = 0; |
| 165 | 165 |
| 166 // Stop listening events in preparation for shutdown. |
| 167 virtual void PrepareForShutdown() = 0; |
| 168 |
| 166 protected: | 169 protected: |
| 167 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. | 170 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. |
| 168 | 171 |
| 169 WindowTreeHost(); | 172 WindowTreeHost(); |
| 170 void DestroyCompositor(); | 173 void DestroyCompositor(); |
| 171 void DestroyDispatcher(); | 174 void DestroyDispatcher(); |
| 172 | 175 |
| 173 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 176 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); |
| 174 | 177 |
| 175 // Returns the location of the RootWindow on native screen. | 178 // Returns the location of the RootWindow on native screen. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 gfx::NativeCursor last_cursor_; | 217 gfx::NativeCursor last_cursor_; |
| 215 | 218 |
| 216 scoped_ptr<ui::ViewProp> prop_; | 219 scoped_ptr<ui::ViewProp> prop_; |
| 217 | 220 |
| 218 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 221 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 219 }; | 222 }; |
| 220 | 223 |
| 221 } // namespace aura | 224 } // namespace aura |
| 222 | 225 |
| 223 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 226 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |