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

Unified Diff: ui/ozone/ozone_platform.h

Issue 230763004: Split ui/display types into separate module and have Ozone depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: ui/ozone/ozone_platform.h
diff --git a/ui/ozone/ozone_platform.h b/ui/ozone/ozone_platform.h
index 61cd9efb2a204d9c9de2ea5c4c726c3b610467fd..d0aead68f1df8fd1b928e016b3f7eacebbf155fe 100644
--- a/ui/ozone/ozone_platform.h
+++ b/ui/ozone/ozone_platform.h
@@ -6,6 +6,7 @@
#define UI_OZONE_OZONE_PLATFORM_H_
#include "base/memory/scoped_ptr.h"
+#include "ui/display/types/chromeos/native_display_delegate.h"
#include "ui/events/ozone/event_factory_ozone.h"
#include "ui/gfx/ozone/surface_factory_ozone.h"
#include "ui/ozone/ime/input_method_context_factory_ozone.h"
@@ -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,7 @@ class OZONE_EXPORT OzonePlatform {
virtual ui::InputMethodContextFactoryOzone*
GetInputMethodContextFactoryOzone() = 0;
virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
+ virtual ui::NativeDisplayDelegate* CreateNativeDisplayDelegate() = 0;
private:
static OzonePlatform* instance_;
« ui/display/types/DEPS ('K') | « ui/ozone/ozone.gyp ('k') | ui/ozone/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698