| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_UI_WS_DISPLAY_H_ | 5 #ifndef SERVICES_UI_WS_DISPLAY_H_ |
| 6 #define SERVICES_UI_WS_DISPLAY_H_ | 6 #define SERVICES_UI_WS_DISPLAY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 void AddActivationParent(ServerWindow* window); | 139 void AddActivationParent(ServerWindow* window); |
| 140 void RemoveActivationParent(ServerWindow* window); | 140 void RemoveActivationParent(ServerWindow* window); |
| 141 | 141 |
| 142 void UpdateTextInputState(ServerWindow* window, | 142 void UpdateTextInputState(ServerWindow* window, |
| 143 const ui::TextInputState& state); | 143 const ui::TextInputState& state); |
| 144 void SetImeVisibility(ServerWindow* window, bool visible); | 144 void SetImeVisibility(ServerWindow* window, bool visible); |
| 145 | 145 |
| 146 // Called just before |tree| is destroyed. | 146 // Called just before |tree| is destroyed. |
| 147 void OnWillDestroyTree(WindowTree* tree); | 147 void OnWillDestroyTree(WindowTree* tree); |
| 148 | 148 |
| 149 void UpdateNativeCursor(mojom::Cursor cursor_id); | 149 void UpdateNativeCursor(mojom::CursorType cursor_id); |
| 150 | 150 |
| 151 // mojom::WindowTreeHost: | 151 // mojom::WindowTreeHost: |
| 152 void SetSize(const gfx::Size& size) override; | 152 void SetSize(const gfx::Size& size) override; |
| 153 void SetTitle(const std::string& title) override; | 153 void SetTitle(const std::string& title) override; |
| 154 | 154 |
| 155 // Updates the size of display root ServerWindow and WM root ServerWindow(s). | 155 // Updates the size of display root ServerWindow and WM root ServerWindow(s). |
| 156 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); | 156 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); |
| 157 | 157 |
| 158 // Returns the root window of the active user. | 158 // Returns the root window of the active user. |
| 159 ServerWindow* GetActiveRootWindow(); | 159 ServerWindow* GetActiveRootWindow(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 WindowServer* const window_server_; | 208 WindowServer* const window_server_; |
| 209 std::unique_ptr<ServerWindow> root_; | 209 std::unique_ptr<ServerWindow> root_; |
| 210 std::unique_ptr<PlatformDisplay> platform_display_; | 210 std::unique_ptr<PlatformDisplay> platform_display_; |
| 211 std::unique_ptr<FocusController> focus_controller_; | 211 std::unique_ptr<FocusController> focus_controller_; |
| 212 | 212 |
| 213 // In internal window mode this contains information about the display. In | 213 // In internal window mode this contains information about the display. In |
| 214 // external window mode this will be invalid. | 214 // external window mode this will be invalid. |
| 215 display::Display display_; | 215 display::Display display_; |
| 216 | 216 |
| 217 // The last cursor set. Used to track whether we need to change the cursor. | 217 // The last cursor set. Used to track whether we need to change the cursor. |
| 218 mojom::Cursor last_cursor_; | 218 mojom::CursorType last_cursor_; |
| 219 | 219 |
| 220 ServerWindowTracker activation_parents_; | 220 ServerWindowTracker activation_parents_; |
| 221 | 221 |
| 222 cc::LocalSurfaceIdAllocator allocator_; | 222 cc::LocalSurfaceIdAllocator allocator_; |
| 223 | 223 |
| 224 WindowManagerDisplayRootMap window_manager_display_root_map_; | 224 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 225 | 225 |
| 226 DISALLOW_COPY_AND_ASSIGN(Display); | 226 DISALLOW_COPY_AND_ASSIGN(Display); |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } // namespace ws | 229 } // namespace ws |
| 230 } // namespace ui | 230 } // namespace ui |
| 231 | 231 |
| 232 #endif // SERVICES_UI_WS_DISPLAY_H_ | 232 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |