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

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

Issue 2434923002: Handle modified displays in mustash. (Closed)
Patch Set: Fix PlatformScreenStub for tests. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | 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 415592d8430b41f4189360faeacdc1a4b3412cc8..98edd42f3bd8b2daba72110722755867e41eb32f 100644
--- a/services/ui/ws/display.h
+++ b/services/ui/ws/display.h
@@ -82,7 +82,6 @@ class Display : public PlatformDisplayDelegate,
// Schedules a paint for the specified region in the coordinates of |window|.
void SchedulePaint(const ServerWindow* window, const gfx::Rect& bounds);
- display::Display::Rotation GetRotation() const;
gfx::Size GetSize() const;
WindowServer* window_server() { return window_server_; }
@@ -145,6 +144,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);
+
private:
friend class test::DisplayTestApi;
@@ -167,8 +169,6 @@ class Display : public PlatformDisplayDelegate,
bool IsInHighContrastMode() override;
void OnEvent(const ui::Event& event) override;
void OnNativeCaptureLost() override;
- void OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
- const ViewportMetrics& new_metrics) override;
// FocusControllerDelegate:
bool CanHaveActiveChildren(ServerWindow* window) const override;
« no previous file with comments | « services/ui/ws/BUILD.gn ('k') | services/ui/ws/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698