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

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

Issue 2190633002: Add flag to launch two displays for mus+ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 4 years, 5 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/frame_generator_delegate.h ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.h
diff --git a/services/ui/ws/platform_display.h b/services/ui/ws/platform_display.h
index 7ad91855cf7503980f8d2a36fd7d76f34b6b6177..d7bc2f6033afbc69c355d9835c2638b4eff30fb3 100644
--- a/services/ui/ws/platform_display.h
+++ b/services/ui/ws/platform_display.h
@@ -87,6 +87,8 @@ class PlatformDisplay {
virtual int64_t GetDisplayId() const = 0;
+ virtual gfx::Rect GetBounds() const = 0;
+
// Overrides factory for testing. Default (NULL) value indicates regular
// (non-test) environment.
static void set_factory_for_testing(PlatformDisplayFactory* factory) {
@@ -124,9 +126,10 @@ class DefaultPlatformDisplay : public PlatformDisplay,
void RequestCopyOfOutput(
std::unique_ptr<cc::CopyOutputRequest> output_request) override;
int64_t GetDisplayId() const override;
+ gfx::Rect GetBounds() const override;
private:
- void UpdateMetrics(const gfx::Size& size, float device_scale_factor);
+ void UpdateMetrics(const gfx::Rect& bounds, float device_scale_factor);
// ui::PlatformWindowDelegate:
void OnBoundsChanged(const gfx::Rect& new_bounds) override;
« no previous file with comments | « services/ui/ws/frame_generator_delegate.h ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698