| 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 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 CursorFactoryOzone* GetCursorFactoryOzone() override { | 36 CursorFactoryOzone* GetCursorFactoryOzone() override { |
| 37 return cursor_factory_ozone_.get(); | 37 return cursor_factory_ozone_.get(); |
| 38 } | 38 } |
| 39 GpuPlatformSupport* GetGpuPlatformSupport() override { | 39 GpuPlatformSupport* GetGpuPlatformSupport() override { |
| 40 return gpu_platform_support_.get(); | 40 return gpu_platform_support_.get(); |
| 41 } | 41 } |
| 42 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { | 42 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { |
| 43 return gpu_platform_support_host_.get(); | 43 return gpu_platform_support_host_.get(); |
| 44 } | 44 } |
| 45 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
| 46 return nullptr; // no input injection support. |
| 47 } |
| 45 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 48 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 46 PlatformWindowDelegate* delegate, | 49 PlatformWindowDelegate* delegate, |
| 47 const gfx::Rect& bounds) override { | 50 const gfx::Rect& bounds) override { |
| 48 return make_scoped_ptr<PlatformWindow>( | 51 return make_scoped_ptr<PlatformWindow>( |
| 49 new TestWindow(delegate, window_manager_.get(), bounds)); | 52 new TestWindow(delegate, window_manager_.get(), bounds)); |
| 50 } | 53 } |
| 51 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 54 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
| 52 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); | 55 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); |
| 53 } | 56 } |
| 54 | 57 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 82 | 85 |
| 83 OzonePlatform* CreateOzonePlatformTest() { | 86 OzonePlatform* CreateOzonePlatformTest() { |
| 84 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 87 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
| 85 base::FilePath location; | 88 base::FilePath location; |
| 86 if (cmd->HasSwitch(switches::kOzoneDumpFile)) | 89 if (cmd->HasSwitch(switches::kOzoneDumpFile)) |
| 87 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); | 90 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); |
| 88 return new OzonePlatformTest(location); | 91 return new OzonePlatformTest(location); |
| 89 } | 92 } |
| 90 | 93 |
| 91 } // namespace ui | 94 } // namespace ui |
| OLD | NEW |