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