| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Called just before |tree| is destroyed. | 131 // Called just before |tree| is destroyed. |
| 132 void OnWillDestroyTree(WindowTree* tree); | 132 void OnWillDestroyTree(WindowTree* tree); |
| 133 | 133 |
| 134 void UpdateNativeCursor(mojom::Cursor cursor_id); | 134 void UpdateNativeCursor(mojom::Cursor cursor_id); |
| 135 | 135 |
| 136 // mojom::WindowTreeHost: | 136 // mojom::WindowTreeHost: |
| 137 void SetSize(const gfx::Size& size) override; | 137 void SetSize(const gfx::Size& size) override; |
| 138 void SetTitle(const mojo::String& title) override; | 138 void SetTitle(const mojo::String& title) override; |
| 139 | 139 |
| 140 // Updates the root window, if necessary, for viewport metric changes. | 140 // Updates the size of display root ServerWindow and WM root ServerWindow(s). |
| 141 void OnViewportMetricsChanged(const display::ViewportMetrics& new_metrics); | 141 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); |
| 142 | 142 |
| 143 private: | 143 private: |
| 144 friend class test::DisplayTestApi; | 144 friend class test::DisplayTestApi; |
| 145 | 145 |
| 146 using WindowManagerDisplayRootMap = | 146 using WindowManagerDisplayRootMap = |
| 147 std::map<UserId, WindowManagerDisplayRoot*>; | 147 std::map<UserId, WindowManagerDisplayRoot*>; |
| 148 | 148 |
| 149 // Inits the necessary state once the display is ready. | 149 // Inits the necessary state once the display is ready. |
| 150 void InitWindowManagerDisplayRootsIfNecessary(); | 150 void InitWindowManagerDisplayRootsIfNecessary(); |
| 151 | 151 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 WindowManagerDisplayRootMap window_manager_display_root_map_; | 199 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 200 | 200 |
| 201 DISALLOW_COPY_AND_ASSIGN(Display); | 201 DISALLOW_COPY_AND_ASSIGN(Display); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace ws | 204 } // namespace ws |
| 205 } // namespace ui | 205 } // namespace ui |
| 206 | 206 |
| 207 #endif // SERVICES_UI_WS_DISPLAY_H_ | 207 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |