| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // mojom::WindowTreeHost: | 155 // mojom::WindowTreeHost: |
| 156 void SetSize(const gfx::Size& size) override; | 156 void SetSize(const gfx::Size& size) override; |
| 157 void SetTitle(const std::string& title) override; | 157 void SetTitle(const std::string& title) override; |
| 158 | 158 |
| 159 // Updates the size of display root ServerWindow and WM root ServerWindow(s). | 159 // Updates the size of display root ServerWindow and WM root ServerWindow(s). |
| 160 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); | 160 void OnViewportMetricsChanged(const display::ViewportMetrics& metrics); |
| 161 | 161 |
| 162 void SetBoundsInPixels(const gfx::Rect& bounds_in_pixels); |
| 163 |
| 162 // Returns the root window of the active user. | 164 // Returns the root window of the active user. |
| 163 ServerWindow* GetActiveRootWindow(); | 165 ServerWindow* GetActiveRootWindow(); |
| 164 | 166 |
| 165 private: | 167 private: |
| 166 friend class test::DisplayTestApi; | 168 friend class test::DisplayTestApi; |
| 167 | 169 |
| 168 using WindowManagerDisplayRootMap = | 170 using WindowManagerDisplayRootMap = |
| 169 std::map<UserId, WindowManagerDisplayRoot*>; | 171 std::map<UserId, WindowManagerDisplayRoot*>; |
| 170 | 172 |
| 171 class CursorState; | 173 class CursorState; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 229 |
| 228 WindowManagerDisplayRootMap window_manager_display_root_map_; | 230 WindowManagerDisplayRootMap window_manager_display_root_map_; |
| 229 | 231 |
| 230 DISALLOW_COPY_AND_ASSIGN(Display); | 232 DISALLOW_COPY_AND_ASSIGN(Display); |
| 231 }; | 233 }; |
| 232 | 234 |
| 233 } // namespace ws | 235 } // namespace ws |
| 234 } // namespace ui | 236 } // namespace ui |
| 235 | 237 |
| 236 #endif // SERVICES_UI_WS_DISPLAY_H_ | 238 #endif // SERVICES_UI_WS_DISPLAY_H_ |
| OLD | NEW |