| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_OZONE_DRM_OZONE_PLATFORM_DRM_H_ | 5 #ifndef UI_OZONE_DRM_OZONE_PLATFORM_DRM_H_ |
| 6 #define UI_OZONE_DRM_OZONE_PLATFORM_DRM_H_ | 6 #define UI_OZONE_DRM_OZONE_PLATFORM_DRM_H_ |
| 7 | 7 |
| 8 #include "ui/base/ozone/ozone_platform.h" | 8 #include "ui/base/ozone/ozone_platform.h" |
| 9 #include "ui/events/ozone/evdev/event_factory.h" | 9 #include "ui/events/ozone/evdev/event_factory.h" |
| 10 #include "ui/gfx/ozone/impl/software_surface_factory_ozone.h" | 10 #include "ui/gfx/ozone/impl/software_surface_factory_ozone.h" |
| 11 | 11 |
| 12 namespace ui { | 12 namespace ui { |
| 13 | 13 |
| 14 class OzonePlatformDri : public OzonePlatform { | 14 class OzonePlatformDri : public OzonePlatform { |
| 15 public: | 15 public: |
| 16 OzonePlatformDri(); | 16 OzonePlatformDri(); |
| 17 virtual ~OzonePlatformDri(); | 17 virtual ~OzonePlatformDri(); |
| 18 | 18 |
| 19 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; | 19 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; |
| 20 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; | 20 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 gfx::SoftwareSurfaceFactoryOzone surface_factory_ozone_; | 23 gfx::SoftwareSurfaceFactoryOzone surface_factory_ozone_; |
| 24 ui::EventFactoryEvdev event_factory_ozone_; | 24 ui::EventFactoryEvdev event_factory_ozone_; |
| 25 | 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); | 26 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 // Constructor hook for use in ozone_platform_list.cc |
| 30 OzonePlatform* CreateOzonePlatformDri(); |
| 31 |
| 29 } // namespace ui | 32 } // namespace ui |
| 30 | 33 |
| 31 #endif // UI_OZONE_OZONE_PLATFORM_H_ | 34 #endif // UI_OZONE_OZONE_PLATFORM_H_ |
| OLD | NEW |