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

Side by Side Diff: components/mus/ws/display.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 COMPONENTS_MUS_WS_DISPLAY_H_ 5 #ifndef COMPONENTS_MUS_WS_DISPLAY_H_
6 #define COMPONENTS_MUS_WS_DISPLAY_H_ 6 #define COMPONENTS_MUS_WS_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 void UpdateTextInputState(ServerWindow* window, 128 void UpdateTextInputState(ServerWindow* window,
129 const ui::TextInputState& state); 129 const ui::TextInputState& state);
130 void SetImeVisibility(ServerWindow* window, bool visible); 130 void SetImeVisibility(ServerWindow* window, bool visible);
131 131
132 // Called just before |tree| is destroyed. 132 // Called just before |tree| is destroyed.
133 void OnWillDestroyTree(WindowTree* tree); 133 void OnWillDestroyTree(WindowTree* tree);
134 134
135 void UpdateNativeCursor(int32_t cursor_id); 135 void UpdateNativeCursor(int32_t cursor_id);
136 136
137 // mojom::WindowTreeHost: 137 // mojom::WindowTreeHost:
138 void SetSize(mojo::SizePtr size) override; 138 void SetSize(const gfx::Size& size) override;
139 void SetTitle(const mojo::String& title) override; 139 void SetTitle(const mojo::String& title) override;
140 140
141 private: 141 private:
142 friend class test::DisplayTestApi; 142 friend class test::DisplayTestApi;
143 143
144 using WindowManagerStateMap = 144 using WindowManagerStateMap =
145 std::map<UserId, std::unique_ptr<WindowManagerState>>; 145 std::map<UserId, std::unique_ptr<WindowManagerState>>;
146 146
147 // Inits the necessary state once the display is ready. 147 // Inits the necessary state once the display is ready.
148 void InitWindowManagersIfNecessary(); 148 void InitWindowManagersIfNecessary();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 WindowManagerStateMap window_manager_state_map_; 206 WindowManagerStateMap window_manager_state_map_;
207 207
208 DISALLOW_COPY_AND_ASSIGN(Display); 208 DISALLOW_COPY_AND_ASSIGN(Display);
209 }; 209 };
210 210
211 } // namespace ws 211 } // namespace ws
212 } // namespace mus 212 } // namespace mus
213 213
214 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ 214 #endif // COMPONENTS_MUS_WS_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698