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

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

Issue 2274353003: Add PlatformScreenDelegate and start implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes after once over. 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
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 0e89b57a09fbb93802d1d9382c08640e243431e7..fd99cccee99f9716958aa1d079e2c12147fbdb48 100644
--- a/services/ui/display/platform_screen_impl_ozone.h
+++ b/services/ui/display/platform_screen_impl_ozone.h
@@ -30,8 +30,7 @@ class PlatformScreenImplOzone : public PlatformScreen,
// PlatformScreen:
void Init() override; // Must not be called until after the ozone platform is
// initialized.
- void ConfigurePhysicalDisplay(
- const ConfiguredDisplayCallback& callback) override;
+ void ConfigureDisplays(PlatformScreenDelegate* delegate) override;
int64_t GetPrimaryDisplayId() const override;
// ui::DisplayConfigurator::Observer:
@@ -41,6 +40,7 @@ class PlatformScreenImplOzone : public PlatformScreen,
const ui::DisplayConfigurator::DisplayStateList& displays,
ui::MultipleDisplayState failed_new_state) override;
+ PlatformScreenDelegate* delegate_ = nullptr;
ui::DisplayConfigurator display_configurator_;
// TODO(kylechar): These values can/should be replaced by DisplayLayout.
@@ -48,9 +48,6 @@ class PlatformScreenImplOzone : public PlatformScreen,
std::set<uint64_t> displays_;
gfx::Point next_display_origin_;
- // Callback for when new displays are configured.
- ConfiguredDisplayCallback callback_;
-
DISALLOW_COPY_AND_ASSIGN(PlatformScreenImplOzone);
};

Powered by Google App Engine
This is Rietveld 408576698