diff options
Diffstat (limited to 'ui/ozone/ozone_platform.h')
-rw-r--r-- | ui/ozone/ozone_platform.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/ozone/ozone_platform.h b/ui/ozone/ozone_platform.h index 61cd9ef..e87f422 100644 --- a/ui/ozone/ozone_platform.h +++ b/ui/ozone/ozone_platform.h @@ -14,6 +14,7 @@ namespace ui { class CursorFactoryOzone; +class NativeDisplayDelegate; // Base class for Ozone platform implementations. // @@ -38,6 +39,8 @@ class OZONE_EXPORT OzonePlatform { // EventFactoryOzone will be set. static void Initialize(); + static OzonePlatform* GetInstance(); + // Factory getters to override in subclasses. The returned objects will be // injected into the appropriate layer at startup. Subclasses should not // inject these objects themselves. Ownership is retained by OzonePlatform. @@ -46,6 +49,10 @@ class OZONE_EXPORT OzonePlatform { virtual ui::InputMethodContextFactoryOzone* GetInputMethodContextFactoryOzone() = 0; virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; +#if defined(OS_CHROMEOS) + virtual scoped_ptr<ui::NativeDisplayDelegate> + CreateNativeDisplayDelegate() = 0; +#endif private: static OzonePlatform* instance_; |