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

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

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.cc ('k') | services/ui/display/platform_screen_impl_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/platform_screen_impl_ozone.h
diff --git a/services/ui/display/platform_screen_impl_ozone.h b/services/ui/display/platform_screen_impl_ozone.h
index 025d0c4256ac8582e2c54b846d592780a77c56e7..0e89b57a09fbb93802d1d9382c08640e243431e7 100644
--- a/services/ui/display/platform_screen_impl_ozone.h
+++ b/services/ui/display/platform_screen_impl_ozone.h
@@ -7,12 +7,14 @@
#include <stdint.h>
+#include <set>
#include <vector>
#include "base/callback.h"
#include "base/macros.h"
#include "services/ui/display/platform_screen.h"
#include "ui/display/chromeos/display_configurator.h"
+#include "ui/display/display.h"
namespace display {
@@ -30,6 +32,7 @@ class PlatformScreenImplOzone : public PlatformScreen,
// initialized.
void ConfigurePhysicalDisplay(
const ConfiguredDisplayCallback& callback) override;
+ int64_t GetPrimaryDisplayId() const override;
// ui::DisplayConfigurator::Observer:
void OnDisplayModeChanged(
@@ -40,7 +43,12 @@ class PlatformScreenImplOzone : public PlatformScreen,
ui::DisplayConfigurator display_configurator_;
- // Callback to called when new displays are configured.
+ // TODO(kylechar): These values can/should be replaced by DisplayLayout.
+ int64_t primary_display_id_ = display::Display::kInvalidDisplayID;
+ std::set<uint64_t> displays_;
+ gfx::Point next_display_origin_;
+
+ // Callback for when new displays are configured.
ConfiguredDisplayCallback callback_;
DISALLOW_COPY_AND_ASSIGN(PlatformScreenImplOzone);
« no previous file with comments | « services/ui/display/platform_screen_impl.cc ('k') | services/ui/display/platform_screen_impl_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698