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

Unified Diff: components/mus/ws/platform_display.h

Issue 2081253002: Implement rudimentary touchscreen support in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing pure virtual. Created 4 years, 6 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 | « components/mus/ws/display.cc ('k') | components/mus/ws/platform_display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/platform_display.h
diff --git a/components/mus/ws/platform_display.h b/components/mus/ws/platform_display.h
index e733e252e59f0ec3f02b3645e57b8b440240d7d5..9b19220f23469c7adea1c198ef0fc0ade5fa6b9f 100644
--- a/components/mus/ws/platform_display.h
+++ b/components/mus/ws/platform_display.h
@@ -98,6 +98,8 @@ class PlatformDisplay {
virtual void RequestCopyOfOutput(
std::unique_ptr<cc::CopyOutputRequest> output_request) = 0;
+ virtual int64_t GetDisplayId() const = 0;
+
// Overrides factory for testing. Default (NULL) value indicates regular
// (non-test) environment.
static void set_factory_for_testing(PlatformDisplayFactory* factory) {
@@ -133,6 +135,7 @@ class DefaultPlatformDisplay : public PlatformDisplay,
bool IsFramePending() const override;
void RequestCopyOfOutput(
std::unique_ptr<cc::CopyOutputRequest> output_request) override;
+ int64_t GetDisplayId() const override;
private:
void WantToDraw();
@@ -162,6 +165,8 @@ class DefaultPlatformDisplay : public PlatformDisplay,
void OnAcceleratedWidgetDestroyed() override;
void OnActivationChanged(bool active) override;
+ int64_t display_id_;
+
scoped_refptr<GpuState> gpu_state_;
scoped_refptr<SurfacesState> surfaces_state_;
PlatformDisplayDelegate* delegate_;
« no previous file with comments | « components/mus/ws/display.cc ('k') | components/mus/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698