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

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

Issue 1899923002: Basic display management for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed debugging code Created 4 years, 7 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void OnCursorUpdated(ServerWindow* window); 141 void OnCursorUpdated(ServerWindow* window);
142 142
143 // Called when the window tree when stacking and bounds of a window 143 // Called when the window tree when stacking and bounds of a window
144 // change. This may update the cursor if the ServerWindow under the last 144 // change. This may update the cursor if the ServerWindow under the last
145 // known pointer location changed. 145 // known pointer location changed.
146 void MaybeChangeCursorOnWindowTreeChange(); 146 void MaybeChangeCursorOnWindowTreeChange();
147 147
148 // mojom::WindowTreeHost: 148 // mojom::WindowTreeHost:
149 void SetSize(mojo::SizePtr size) override; 149 void SetSize(mojo::SizePtr size) override;
150 void SetTitle(const mojo::String& title) override; 150 void SetTitle(const mojo::String& title) override;
151
152 private: 151 private:
153 friend class test::DisplayTestApi; 152 friend class test::DisplayTestApi;
154 153
155 using WindowManagerStateMap = 154 using WindowManagerStateMap =
156 std::map<UserId, std::unique_ptr<WindowManagerState>>; 155 std::map<UserId, std::unique_ptr<WindowManagerState>>;
157 156
158 // Inits the necessary state once the display is ready. 157 // Inits the necessary state once the display is ready.
159 void InitWindowManagersIfNecessary(); 158 void InitWindowManagersIfNecessary();
160 159
161 // Creates the set of WindowManagerStates from the 160 // Creates the set of WindowManagerStates from the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 219
221 cc::SurfaceId top_level_surface_id_; 220 cc::SurfaceId top_level_surface_id_;
222 221
223 DISALLOW_COPY_AND_ASSIGN(Display); 222 DISALLOW_COPY_AND_ASSIGN(Display);
224 }; 223 };
225 224
226 } // namespace ws 225 } // namespace ws
227 } // namespace mus 226 } // namespace mus
228 227
229 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ 228 #endif // COMPONENTS_MUS_WS_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698