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 #include "ui/ozone/platform/test/ozone_platform_test.h" | 5 #include "ui/ozone/platform/test/ozone_platform_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" | 9 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" |
10 #include "ui/events/platform/platform_event_source.h" | 10 #include "ui/events/platform/platform_event_source.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 CursorFactoryOzone* GetCursorFactoryOzone() override { | 37 CursorFactoryOzone* GetCursorFactoryOzone() override { |
38 return cursor_factory_ozone_.get(); | 38 return cursor_factory_ozone_.get(); |
39 } | 39 } |
40 GpuPlatformSupport* GetGpuPlatformSupport() override { | 40 GpuPlatformSupport* GetGpuPlatformSupport() override { |
41 return gpu_platform_support_.get(); | 41 return gpu_platform_support_.get(); |
42 } | 42 } |
43 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { | 43 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { |
44 return gpu_platform_support_host_.get(); | 44 return gpu_platform_support_host_.get(); |
45 } | 45 } |
46 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { | 46 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
47 return nullptr; // no input injection support. | 47 return nullptr; // no input injection support. |
48 } | 48 } |
49 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 49 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
50 PlatformWindowDelegate* delegate, | 50 PlatformWindowDelegate* delegate, |
51 const gfx::Rect& bounds) override { | 51 const gfx::Rect& bounds) override { |
52 return make_scoped_ptr<PlatformWindow>( | 52 return make_scoped_ptr<PlatformWindow>( |
53 new TestWindow(delegate, window_manager_.get(), bounds)); | 53 new TestWindow(delegate, window_manager_.get(), bounds)); |
54 } | 54 } |
55 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 55 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
56 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); | 56 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); |
57 } | 57 } |
(...skipping 28 matching lines...) Expand all Loading... |
86 | 86 |
87 OzonePlatform* CreateOzonePlatformTest() { | 87 OzonePlatform* CreateOzonePlatformTest() { |
88 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 88 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
89 base::FilePath location; | 89 base::FilePath location; |
90 if (cmd->HasSwitch(switches::kOzoneDumpFile)) | 90 if (cmd->HasSwitch(switches::kOzoneDumpFile)) |
91 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); | 91 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); |
92 return new OzonePlatformTest(location); | 92 return new OzonePlatformTest(location); |
93 } | 93 } |
94 | 94 |
95 } // namespace ui | 95 } // namespace ui |
OLD | NEW |