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

Unified Diff: ui/ozone/ozone_platform.h

Issue 44933002: Implement OzonePlatform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
new file mode 100644
index 0000000000000000000000000000000000000000..4cc29059ab908d5d084b6de6886afb0ac771a54c
--- /dev/null
+++ b/ui/ozone/ozone_platform.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_EVENTS_OZONE_OZONE_PLATFORM_H_
+#define UI_EVENTS_OZONE_OZONE_PLATFORM_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/events/ozone/event_factory_ozone.h"
+#include "ui/gfx/ozone/surface_factory_ozone.h"
+#include "ui/ozone/ozone_export.h"
+
+namespace ui {
+
+class OZONE_EXPORT OzonePlatform {
rjkroege 2013/10/25 18:24:02 this class is part of the external ozone api. it n
+ public:
+ OzonePlatform();
+ virtual ~OzonePlatform();
+
+ static OzonePlatform* Create();
+
+ virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
+ virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0;
+
+ private:
+ static OzonePlatform* instance_;
+
+ DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
+};
+
+// Hook to be provided by the built-in default implementation.
+OzonePlatform* CreateDefaultOzonePlatform();
+
+} // namespace ui
+
+#endif // UI_OZONE_OZONE_PLATFORM_H_

Powered by Google App Engine
This is Rietveld 408576698