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

Unified Diff: services/ui/ws/test_utils.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/platform_display_init_params.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.h
diff --git a/services/ui/ws/test_utils.h b/services/ui/ws/test_utils.h
index 0a1917deb7c73649ce911cb68510680db1d6c614..ce641fad94f8f539e4d326391e62060e4d0419de 100644
--- a/services/ui/ws/test_utils.h
+++ b/services/ui/ws/test_utils.h
@@ -285,11 +285,11 @@ class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
// FrameGeneratorDelegate:
ServerWindow* GetRootWindow() override;
bool IsInHighContrastMode() override;
- const ViewportMetrics& GetViewportMetrics() override;
+ const display::ViewportMetrics& GetViewportMetrics() const override;
private:
std::unique_ptr<ServerWindow> root_;
- ViewportMetrics metrics_;
+ display::ViewportMetrics metrics_;
DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
};
@@ -332,6 +332,7 @@ class TestWindowManager : public mojom::WindowManager {
ui::mojom::WindowDataPtr root,
bool drawn) override {}
void WmDisplayRemoved(int64_t display_id) override;
+ void WmDisplayModified(const display::Display& display) override {}
void WmSetBounds(uint32_t change_id,
uint32_t window_id,
const gfx::Rect& bounds) override {}
« no previous file with comments | « services/ui/ws/platform_display_init_params.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698