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

Unified Diff: services/ui/display/platform_screen_impl.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.h
diff --git a/services/ui/display/platform_screen_impl.h b/services/ui/display/platform_screen_impl.h
index 0b5ff5a8879348320be9246913112c84207731f1..5dbc72f2fb3f3c89cf197b94618a6af69e43564c 100644
--- a/services/ui/display/platform_screen_impl.h
+++ b/services/ui/display/platform_screen_impl.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/callback.h"
+#include "base/memory/weak_ptr.h"
#include "services/ui/display/platform_screen.h"
namespace display {
@@ -20,12 +21,18 @@ class PlatformScreenImpl : public PlatformScreen {
~PlatformScreenImpl() override;
private:
+ // Fake creation of a single 1024x768 display.
+ void FixedSizeScreenConfiguration();
+
// PlatformScreen.
void Init() override;
- void ConfigurePhysicalDisplay(
- const PlatformScreen::ConfiguredDisplayCallback& callback) override;
+ void ConfigureDisplays(PlatformScreenDelegate* delegate) override;
int64_t GetPrimaryDisplayId() const override;
+ PlatformScreenDelegate* delegate_ = nullptr;
+
+ base::WeakPtrFactory<PlatformScreenImpl> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl);
};

Powered by Google App Engine
This is Rietveld 408576698