| 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 } |
| 74 #if defined(OS_CHROMEOS) | 80 #if defined(OS_CHROMEOS) |
| 75 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 81 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| 76 OVERRIDE { | 82 OVERRIDE { |
| 77 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( | 83 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( |
| 78 dri_.get(), screen_manager_.get(), device_manager_.get())); | 84 dri_.get(), screen_manager_.get(), device_manager_.get())); |
| 79 } | 85 } |
| 80 virtual scoped_ptr<TouchscreenDeviceManager> | 86 virtual scoped_ptr<TouchscreenDeviceManager> |
| 81 CreateTouchscreenDeviceManager() OVERRIDE { | 87 CreateTouchscreenDeviceManager() OVERRIDE { |
| 82 return scoped_ptr<TouchscreenDeviceManager>( | 88 return scoped_ptr<TouchscreenDeviceManager>( |
| 83 new TouchscreenDeviceManagerOzone()); | 89 new TouchscreenDeviceManagerOzone()); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 106 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; | 112 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
| 107 | 113 |
| 108 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); | 114 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
| 109 }; | 115 }; |
| 110 | 116 |
| 111 } // namespace | 117 } // namespace |
| 112 | 118 |
| 113 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } | 119 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } |
| 114 | 120 |
| 115 } // namespace ui | 121 } // namespace ui |
| OLD | NEW |