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() {} |
}; |