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

Unified Diff: services/ui/ws/display.h

Issue 2491493004: Fix root ServerWindow size. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | services/ui/ws/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.h
diff --git a/services/ui/ws/display.h b/services/ui/ws/display.h
index 11811e5ee640635d5131b427f37a51c6ff07892a..56d973fa034763ebc42b8ff5da04dc9bd3abdcc6 100644
--- a/services/ui/ws/display.h
+++ b/services/ui/ws/display.h
@@ -137,8 +137,9 @@ class Display : public PlatformDisplayDelegate,
void SetSize(const gfx::Size& size) override;
void SetTitle(const mojo::String& title) override;
- // Updates the root window, if necessary, for viewport metric changes.
- void OnViewportMetricsChanged(const display::ViewportMetrics& new_metrics);
+ // Updates the size of display root ServerWindow and WM ServerWindow(s) for
msw 2016/11/09 20:57:18 nit: "the display's root ServerWindow"? and "for t
kylechar 2016/11/09 21:36:56 Changed method otherwise.
+ // new |size| if necessary. |size| is in physical pixels.
+ void UpdateRootWindowSize(const gfx::Size& new_size);
msw 2016/11/09 20:57:18 Would it make sense to keep this as OnViewportMetr
kylechar 2016/11/09 21:36:56 Hmm, we're not using the rest of the values now..
private:
friend class test::DisplayTestApi;
« no previous file with comments | « no previous file | services/ui/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698