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

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: More 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
« no previous file with comments | « services/ui/display/platform_screen_delegate.h ('k') | services/ui/display/platform_screen_impl.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.h
diff --git a/services/ui/display/platform_screen_impl.h b/services/ui/display/platform_screen_impl.h
index 0b5ff5a8879348320be9246913112c84207731f1..62bac21f2b098dbfe8063307827111e228e03168 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,17 @@ 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 Init(PlatformScreenDelegate* delegate) override;
int64_t GetPrimaryDisplayId() const override;
+ PlatformScreenDelegate* delegate_ = nullptr;
+
+ base::WeakPtrFactory<PlatformScreenImpl> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(PlatformScreenImpl);
};
« no previous file with comments | « services/ui/display/platform_screen_delegate.h ('k') | services/ui/display/platform_screen_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698