| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Called just before |tree| is destroyed. | 145 // Called just before |tree| is destroyed. |
| 146 void OnWillDestroyTree(WindowTree* tree); | 146 void OnWillDestroyTree(WindowTree* tree); |
| 147 | 147 |
| 148 // Removes |display_root| from internal maps. This called prior to | 148 // Removes |display_root| from internal maps. This called prior to |
| 149 // |display_root| being destroyed. | 149 // |display_root| being destroyed. |
| 150 void RemoveWindowManagerDisplayRoot(WindowManagerDisplayRoot* display_root); | 150 void RemoveWindowManagerDisplayRoot(WindowManagerDisplayRoot* display_root); |
| 151 | 151 |
| 152 // Sets the native cursor to |cursor|. | 152 // Sets the native cursor to |cursor|. |
| 153 void SetNativeCursor(const ui::CursorData& curosor); | 153 void SetNativeCursor(const ui::CursorData& curosor); |
| 154 | 154 |
| 155 // Sets the native cursor size to |cursor_size|. |
| 156 void SetNativeCursorSize(ui::CursorSize cursor_size); |
| 157 |
| 155 // mojom::WindowTreeHost: | 158 // mojom::WindowTreeHost: |
| 156 void SetSize(const gfx::Size& size) override; | 159 void SetSize(const gfx::Size& size) override; |
| 157 void SetTitle(const std::string& title) override; | 160 void SetTitle(const std::string& title) override; |
| 158 | 161 |
| 159 // Updates the size of display root ServerWindow and WM root ServerWindow(s). | 162 // Updates the size of display root ServerWindow and WM root ServerWindow(s). |
| 160 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); | 163 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); |
| 161 | 164 |
| 162 void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels); | 165 void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels); |
| 163 | 166 |
| 164 // Returns the root window of the active user. | 167 // Returns the root window of the active user. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 232 |
| 230 WindowManagerDisplayRootMap window_manager_display_root_map_; | 233 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 231 | 234 |
| 232 DISALLOW_COPY_AND_ASSIGN(Display); | 235 DISALLOW_COPY_AND_ASSIGN(Display); |
| 233 }; | 236 }; |
| 234 | 237 |
| 235 } // namespace ws | 238 } // namespace ws |
| 236 } // namespace ui | 239 } // namespace ui |
| 237 | 240 |
| 238 #endif // SERVICES_UI_WS_DISPLAY_H_ | 241 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |