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

Side by Side Diff: components/mus/ws/display.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/public/interfaces/window_tree.mojom ('k') | components/mus/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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 mojom::DisplayPtr ToMojomDisplay() const; 76 mojom::DisplayPtr ToMojomDisplay() const;
77 77
78 // Schedules a paint for the specified region in the coordinates of |window|. 78 // Schedules a paint for the specified region in the coordinates of |window|.
79 void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds); 79 void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds);
80 80
81 // Schedules destruction of surfaces in |window|. If a frame has been 81 // Schedules destruction of surfaces in |window|. If a frame has been
82 // scheduled but not drawn surface destruction is delayed until the frame is 82 // scheduled but not drawn surface destruction is delayed until the frame is
83 // drawn, otherwise destruction is immediate. 83 // drawn, otherwise destruction is immediate.
84 void ScheduleSurfaceDestruction(ServerWindow* window); 84 void ScheduleSurfaceDestruction(ServerWindow* window);
85 85
86 // Returns the metrics for this viewport.
87 const mojom::ViewportMetrics& GetViewportMetrics() const;
88
89 mojom::Rotation GetRotation() const; 86 mojom::Rotation GetRotation() const;
90 87
91 WindowServer* window_server() { return window_server_; } 88 WindowServer* window_server() { return window_server_; }
92 89
93 // Returns the root of the Display. The root's children are the roots 90 // Returns the root of the Display. The root's children are the roots
94 // of the corresponding WindowManagers. 91 // of the corresponding WindowManagers.
95 ServerWindow* root_window() { return root_.get(); } 92 ServerWindow* root_window() { return root_.get(); }
96 const ServerWindow* root_window() const { return root_.get(); } 93 const ServerWindow* root_window() const { return root_.get(); }
97 94
98 ServerWindow* GetRootWithId(const WindowId& id); 95 ServerWindow* GetRootWithId(const WindowId& id);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void CreateWindowManagerStatesFromRegistry(); 152 void CreateWindowManagerStatesFromRegistry();
156 153
157 void CreateWindowManagerStateFromService( 154 void CreateWindowManagerStateFromService(
158 WindowManagerFactoryService* service); 155 WindowManagerFactoryService* service);
159 156
160 // PlatformDisplayDelegate: 157 // PlatformDisplayDelegate:
161 ServerWindow* GetRootWindow() override; 158 ServerWindow* GetRootWindow() override;
162 void OnEvent(const ui::Event& event) override; 159 void OnEvent(const ui::Event& event) override;
163 void OnNativeCaptureLost() override; 160 void OnNativeCaptureLost() override;
164 void OnDisplayClosed() override; 161 void OnDisplayClosed() override;
165 void OnViewportMetricsChanged( 162 void OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
166 const mojom::ViewportMetrics& old_metrics, 163 const ViewportMetrics& new_metrics) override;
167 const mojom::ViewportMetrics& new_metrics) override;
168 void OnCompositorFrameDrawn() override; 164 void OnCompositorFrameDrawn() override;
169 165
170 // FocusControllerDelegate: 166 // FocusControllerDelegate:
171 bool CanHaveActiveChildren(ServerWindow* window) const override; 167 bool CanHaveActiveChildren(ServerWindow* window) const override;
172 168
173 // FocusControllerObserver: 169 // FocusControllerObserver:
174 void OnActivationChanged(ServerWindow* old_active_window, 170 void OnActivationChanged(ServerWindow* old_active_window,
175 ServerWindow* new_active_window) override; 171 ServerWindow* new_active_window) override;
176 void OnFocusChanged(FocusControllerChangeSource change_source, 172 void OnFocusChanged(FocusControllerChangeSource change_source,
177 ServerWindow* old_focused_window, 173 ServerWindow* old_focused_window,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 205
210 WindowManagerStateMap window_manager_state_map_; 206 WindowManagerStateMap window_manager_state_map_;
211 207
212 DISALLOW_COPY_AND_ASSIGN(Display); 208 DISALLOW_COPY_AND_ASSIGN(Display);
213 }; 209 };
214 210
215 } // namespace ws 211 } // namespace ws
216 } // namespace mus 212 } // namespace mus
217 213
218 #endif // COMPONENTS_MUS_WS_DISPLAY_H_ 214 #endif // COMPONENTS_MUS_WS_DISPLAY_H_
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/window_tree.mojom ('k') | components/mus/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698