OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ | 5 #ifndef UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ |
6 #define UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ | 6 #define UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | 9 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" |
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
11 #include "ui/gfx/ozone/impl/file_surface_factory.h" | 11 #include "ui/gfx/ozone/impl/file_surface_factory.h" |
12 #include "ui/ozone/ozone_platform.h" | 12 #include "ui/ozone/ozone_platform.h" |
| 13 #include "ui/ozone/window/window_factory_ozone.h" |
13 | 14 |
14 namespace ui { | 15 namespace ui { |
15 | 16 |
16 // OzonePlatform for testing | 17 // OzonePlatform for testing |
17 // | 18 // |
18 // This platform dumps images to a file for testing purposes. | 19 // This platform dumps images to a file for testing purposes. |
19 class OzonePlatformTest : public OzonePlatform { | 20 class OzonePlatformTest : public OzonePlatform { |
20 public: | 21 public: |
21 OzonePlatformTest(const base::FilePath& dump_file); | 22 OzonePlatformTest(const base::FilePath& dump_file); |
22 virtual ~OzonePlatformTest(); | 23 virtual ~OzonePlatformTest(); |
23 | 24 |
24 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; | 25 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; |
25 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; | 26 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; |
26 virtual ui::InputMethodContextFactoryOzone* | 27 virtual ui::InputMethodContextFactoryOzone* |
27 GetInputMethodContextFactoryOzone() OVERRIDE; | 28 GetInputMethodContextFactoryOzone() OVERRIDE; |
28 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE; | 29 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE; |
| 30 virtual ui::WindowFactoryOzone* GetWindowFactoryOzone() OVERRIDE; |
29 | 31 |
30 private: | 32 private: |
31 gfx::FileSurfaceFactory surface_factory_ozone_; | 33 gfx::FileSurfaceFactory surface_factory_ozone_; |
32 ui::EventFactoryEvdev event_factory_ozone_; | 34 ui::EventFactoryEvdev event_factory_ozone_; |
33 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; | 35 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; |
34 ui::CursorFactoryOzone cursor_factory_ozone_; | 36 ui::CursorFactoryOzone cursor_factory_ozone_; |
| 37 ui::WindowFactoryOzone window_factory_ozone_; |
35 | 38 |
36 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); | 39 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); |
37 }; | 40 }; |
38 | 41 |
39 // Constructor hook for use in ozone_platform_list.cc | 42 // Constructor hook for use in ozone_platform_list.cc |
40 OzonePlatform* CreateOzonePlatformTest(); | 43 OzonePlatform* CreateOzonePlatformTest(); |
41 | 44 |
42 } // namespace ui | 45 } // namespace ui |
43 | 46 |
44 #endif // UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ | 47 #endif // UI_OZONE_PLATFORM_TEST_OZONE_PLATFORM_TEST_H_ |
OLD | NEW |