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

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

Issue 2021483002: mus: Remove ViewportMetrics from mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
« no previous file with comments | « components/mus/ws/test_utils.cc ('k') | components/mus/ws/window_server.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WINDOW_SERVER_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_H_
6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 current_operation_->source_tree_id() == client_id; 112 current_operation_->source_tree_id() == client_id;
113 } 113 }
114 114
115 // Invoked when a client messages a client about the change. This is used 115 // Invoked when a client messages a client about the change. This is used
116 // to avoid sending ServerChangeIdAdvanced() unnecessarily. 116 // to avoid sending ServerChangeIdAdvanced() unnecessarily.
117 void OnTreeMessagedClient(ClientSpecificId id); 117 void OnTreeMessagedClient(ClientSpecificId id);
118 118
119 // Returns true if OnTreeMessagedClient() was invoked for id. 119 // Returns true if OnTreeMessagedClient() was invoked for id.
120 bool DidTreeMessageClient(ClientSpecificId id) const; 120 bool DidTreeMessageClient(ClientSpecificId id) const;
121 121
122 // Returns the metrics of the viewport where the provided |window| is
123 // displayed.
124 mojom::ViewportMetricsPtr GetViewportMetricsForWindow(
125 const ServerWindow* window);
126
127 // Returns the WindowTree that has |id| as a root. 122 // Returns the WindowTree that has |id| as a root.
128 WindowTree* GetTreeWithRoot(const ServerWindow* window) { 123 WindowTree* GetTreeWithRoot(const ServerWindow* window) {
129 return const_cast<WindowTree*>( 124 return const_cast<WindowTree*>(
130 const_cast<const WindowServer*>(this)->GetTreeWithRoot(window)); 125 const_cast<const WindowServer*>(this)->GetTreeWithRoot(window));
131 } 126 }
132 const WindowTree* GetTreeWithRoot(const ServerWindow* window) const; 127 const WindowTree* GetTreeWithRoot(const ServerWindow* window) const;
133 128
134 void OnFirstWindowManagerFactorySet(); 129 void OnFirstWindowManagerFactorySet();
135 130
136 WindowManagerFactoryRegistry* window_manager_factory_registry() { 131 WindowManagerFactoryRegistry* window_manager_factory_registry() {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 317
323 WindowManagerFactoryRegistry window_manager_factory_registry_; 318 WindowManagerFactoryRegistry window_manager_factory_registry_;
324 319
325 DISALLOW_COPY_AND_ASSIGN(WindowServer); 320 DISALLOW_COPY_AND_ASSIGN(WindowServer);
326 }; 321 };
327 322
328 } // namespace ws 323 } // namespace ws
329 } // namespace mus 324 } // namespace mus
330 325
331 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 326 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « components/mus/ws/test_utils.cc ('k') | components/mus/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698