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

Unified Diff: services/ui/display/platform_screen_impl.cc

Issue 2230963003: Fix window/display bounds with multiple windows in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 4 years, 4 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/display/platform_screen_impl.h ('k') | services/ui/display/platform_screen_impl_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_impl.cc
diff --git a/services/ui/display/platform_screen_impl.cc b/services/ui/display/platform_screen_impl.cc
index 960c4caab34f0d2a8fd8851f8b822e524d48badd..702906fbbc246d7161564e61462c7dce08e1f953 100644
--- a/services/ui/display/platform_screen_impl.cc
+++ b/services/ui/display/platform_screen_impl.cc
@@ -13,9 +13,11 @@
namespace display {
namespace {
+const int64_t kDisplayId = 1;
+
void FixedSizeScreenConfiguration(
const PlatformScreen::ConfiguredDisplayCallback& callback) {
- callback.Run(1, gfx::Rect(1024, 768));
+ callback.Run(kDisplayId, gfx::Rect(1024, 768));
}
} // namespace
@@ -37,4 +39,8 @@ void PlatformScreenImpl::ConfigurePhysicalDisplay(
FROM_HERE, base::Bind(&FixedSizeScreenConfiguration, callback));
}
+int64_t PlatformScreenImpl::GetPrimaryDisplayId() const {
+ return kDisplayId;
+}
+
} // namespace display
« no previous file with comments | « services/ui/display/platform_screen_impl.h ('k') | services/ui/display/platform_screen_impl_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698