| 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 | |
| 169 protected: | 166 protected: |
| 170 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. | 167 friend class TestScreen; // TODO(beng): see if we can remove/consolidate. |
| 171 | 168 |
| 172 WindowTreeHost(); | 169 WindowTreeHost(); |
| 173 void DestroyCompositor(); | 170 void DestroyCompositor(); |
| 174 void DestroyDispatcher(); | 171 void DestroyDispatcher(); |
| 175 | 172 |
| 176 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); | 173 void CreateCompositor(gfx::AcceleratedWidget accelerated_widget); |
| 177 | 174 |
| 178 // Returns the location of the RootWindow on native screen. | 175 // Returns the location of the RootWindow on native screen. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 gfx::NativeCursor last_cursor_; | 214 gfx::NativeCursor last_cursor_; |
| 218 | 215 |
| 219 scoped_ptr<ui::ViewProp> prop_; | 216 scoped_ptr<ui::ViewProp> prop_; |
| 220 | 217 |
| 221 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 218 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 222 }; | 219 }; |
| 223 | 220 |
| 224 } // namespace aura | 221 } // namespace aura |
| 225 | 222 |
| 226 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 223 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |