| 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/dri/ozone_platform_dri.h" | 5 #include "ui/ozone/platform/dri/ozone_platform_dri.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "ui/events/ozone/device/device_manager.h" | 8 #include "ui/events/ozone/device/device_manager.h" |
| 9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // OzonePlatform: | 64 // OzonePlatform: |
| 65 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { | 65 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { |
| 66 return surface_factory_ozone_.get(); | 66 return surface_factory_ozone_.get(); |
| 67 } | 67 } |
| 68 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { | 68 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { |
| 69 return event_factory_ozone_.get(); | 69 return event_factory_ozone_.get(); |
| 70 } | 70 } |
| 71 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 71 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
| 72 return cursor_factory_ozone_.get(); | 72 return cursor_factory_ozone_.get(); |
| 73 } | 73 } |
| 74 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { | |
| 75 return NULL; // no GPU support | |
| 76 } | |
| 77 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { | |
| 78 return NULL; // no GPU support | |
| 79 } | |
| 80 #if defined(OS_CHROMEOS) | 74 #if defined(OS_CHROMEOS) |
| 81 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 75 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| 82 OVERRIDE { | 76 OVERRIDE { |
| 83 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( | 77 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( |
| 84 dri_.get(), screen_manager_.get(), device_manager_.get())); | 78 dri_.get(), screen_manager_.get(), device_manager_.get())); |
| 85 } | 79 } |
| 86 virtual scoped_ptr<TouchscreenDeviceManager> | 80 virtual scoped_ptr<TouchscreenDeviceManager> |
| 87 CreateTouchscreenDeviceManager() OVERRIDE { | 81 CreateTouchscreenDeviceManager() OVERRIDE { |
| 88 return scoped_ptr<TouchscreenDeviceManager>( | 82 return scoped_ptr<TouchscreenDeviceManager>( |
| 89 new TouchscreenDeviceManagerOzone()); | 83 new TouchscreenDeviceManagerOzone()); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 112 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; | 106 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
| 113 | 107 |
| 114 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); | 108 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
| 115 }; | 109 }; |
| 116 | 110 |
| 117 } // namespace | 111 } // namespace |
| 118 | 112 |
| 119 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } | 113 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } |
| 120 | 114 |
| 121 } // namespace ui | 115 } // namespace ui |
| OLD | NEW |