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

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

Issue 2511883006: Mojo C++ bindings: switch services/ui/public/interfaces mojom target to use STL types. (Closed)
Patch Set: . Created 4 years 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
« no previous file with comments | « services/ui/public/interfaces/BUILD.gn ('k') | services/ui/ws/display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/BUILD.gn ('k') | services/ui/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698