Index: ui/ozone/platform/dri/ozone_platform_dri.h |
diff --git a/ui/ozone/platform/dri/ozone_platform_dri.h b/ui/ozone/platform/dri/ozone_platform_dri.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d24aec6d91082a57218ee3fcc2b0304e5abe3712 |
--- /dev/null |
+++ b/ui/ozone/platform/dri/ozone_platform_dri.h |
@@ -0,0 +1,35 @@ |
+// 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_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ |
+#define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ |
+ |
+#include "ui/events/ozone/evdev/event_factory.h" |
+#include "ui/gfx/ozone/impl/software_surface_factory_ozone.h" |
+#include "ui/ozone/ozone_platform.h" |
+ |
+namespace ui { |
+ |
+// OzonePlatform for Linux DRI (Direct Rendering Infrastructure) |
+// |
+// This platform is Linux without any display server (no X, wayland, or |
+// anything). This means chrome alone owns the display and input devices. |
+class OzonePlatformDri : public OzonePlatform { |
+ public: |
+ OzonePlatformDri(); |
+ virtual ~OzonePlatformDri(); |
+ |
+ virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; |
+ virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; |
+ |
+ private: |
+ gfx::SoftwareSurfaceFactoryOzone surface_factory_ozone_; |
+ ui::EventFactoryEvdev event_factory_ozone_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ |