| 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_FILE_OZONE_PLATFORM_FILE_H_ | 5 #ifndef UI_OZONE_FILE_OZONE_PLATFORM_FILE_H_ |
| 6 #define UI_OZONE_FILE_OZONE_PLATFORM_FILE_H_ | 6 #define UI_OZONE_FILE_OZONE_PLATFORM_FILE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "ui/base/ozone/ozone_platform.h" | 9 #include "ui/base/ozone/ozone_platform.h" |
| 10 #include "ui/events/ozone/evdev/event_factory.h" | 10 #include "ui/events/ozone/evdev/event_factory.h" |
| 11 #include "ui/gfx/ozone/impl/file_surface_factory_ozone.h" | 11 #include "ui/gfx/ozone/impl/file_surface_factory_ozone.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class OzonePlatformTest : public OzonePlatform { | 15 class OzonePlatformTest : public OzonePlatform { |
| 16 public: | 16 public: |
| 17 OzonePlatformTest(const base::FilePath& dump_file); | 17 OzonePlatformTest(const base::FilePath& dump_file); |
| 18 virtual ~OzonePlatformTest(); | 18 virtual ~OzonePlatformTest(); |
| 19 | 19 |
| 20 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; | 20 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; |
| 21 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; | 21 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 gfx::FileSurfaceFactoryOzone surface_factory_ozone_; | 24 gfx::FileSurfaceFactoryOzone surface_factory_ozone_; |
| 25 ui::EventFactoryEvdev event_factory_ozone_; | 25 ui::EventFactoryEvdev event_factory_ozone_; |
| 26 | 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); | 27 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 // Constructor hook for use in ozone_platform_list.cc |
| 31 OzonePlatform* CreateOzonePlatformTest(); |
| 32 |
| 30 } // namespace ui | 33 } // namespace ui |
| 31 | 34 |
| 32 #endif // UI_OZONE_OZONE_PLATFORM_H_ | 35 #endif // UI_OZONE_OZONE_PLATFORM_H_ |
| OLD | NEW |