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

Unified Diff: services/ui/ws/platform_display_delegate.h

Issue 2795503002: mash: Don't synthesize extra key press events in the window server (Closed)
Patch Set: remove InputMethodBridge workaround Created 3 years, 8 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/ws/platform_display_default_unittest.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display_delegate.h
diff --git a/services/ui/ws/platform_display_delegate.h b/services/ui/ws/platform_display_delegate.h
index 2140802e13bd9fa2b35a1a6ec2c3f76bffc45b52..cc185b9629dd913bbf1bd15e67de7642fccb9e3f 100644
--- a/services/ui/ws/platform_display_delegate.h
+++ b/services/ui/ws/platform_display_delegate.h
@@ -12,6 +12,7 @@ class Display;
namespace ui {
class EventSink;
+class OzonePlatform;
namespace ws {
@@ -37,6 +38,10 @@ class PlatformDisplayDelegate {
// Called when the Display loses capture.
virtual void OnNativeCaptureLost() = 0;
+ // Allows the OzonePlatform to be overridden, e.g. for tests. Returns null
+ // for non-Ozone platforms.
+ virtual OzonePlatform* GetOzonePlatform() = 0;
+
protected:
virtual ~PlatformDisplayDelegate() {}
};
« no previous file with comments | « services/ui/ws/platform_display_default_unittest.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698