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

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 for comments. 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..712b78a4dfc62d90df93c9fb15afa368d3e3daf6 100644
--- a/services/ui/display/platform_screen_impl_ozone.h
+++ b/services/ui/display/platform_screen_impl_ozone.h
@@ -28,10 +28,7 @@ class PlatformScreenImplOzone : public PlatformScreen,
private:
// PlatformScreen:
- void Init() override; // Must not be called until after the ozone platform is
- // initialized.
- void ConfigurePhysicalDisplay(
- const ConfiguredDisplayCallback& callback) override;
+ void InitialConfig(PlatformScreenDelegate* delegate) override;
int64_t GetPrimaryDisplayId() const override;
// ui::DisplayConfigurator::Observer:
@@ -41,6 +38,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 +46,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