Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: services/ui/ws/display.h

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: Remove old cursor.h includes. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 set to |cursor_set|.
156 void SetNativeCursorSet(const ui::CursorSet& cursor_set);
sky 2017/06/23 13:24:26 As cursor_set is a enum pass by value.
Elliot Glaysher 2017/06/23 20:44:44 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698