| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/caca/ozone_platform_caca.h" | 5 #include "ui/ozone/platform/caca/ozone_platform_caca.h" |
| 6 | 6 |
| 7 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | 7 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" |
| 8 #include "ui/ozone/ozone_platform.h" | 8 #include "ui/ozone/ozone_platform.h" |
| 9 #include "ui/ozone/platform/caca/caca_connection.h" | 9 #include "ui/ozone/platform/caca/caca_connection.h" |
| 10 #include "ui/ozone/platform/caca/caca_event_factory.h" | 10 #include "ui/ozone/platform/caca/caca_event_factory.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // OzonePlatform: | 27 // OzonePlatform: |
| 28 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { | 28 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { |
| 29 return surface_factory_ozone_.get(); | 29 return surface_factory_ozone_.get(); |
| 30 } | 30 } |
| 31 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { | 31 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { |
| 32 return event_factory_ozone_.get(); | 32 return event_factory_ozone_.get(); |
| 33 } | 33 } |
| 34 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 34 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
| 35 return cursor_factory_ozone_.get(); | 35 return cursor_factory_ozone_.get(); |
| 36 } | 36 } |
| 37 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { | |
| 38 return NULL; // no GPU support | |
| 39 } | |
| 40 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { | |
| 41 return NULL; // no GPU support | |
| 42 } | |
| 43 | 37 |
| 44 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
| 45 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 39 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| 46 OVERRIDE { | 40 OVERRIDE { |
| 47 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); | 41 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); |
| 48 } | 42 } |
| 49 virtual scoped_ptr<TouchscreenDeviceManager> | 43 virtual scoped_ptr<TouchscreenDeviceManager> |
| 50 CreateTouchscreenDeviceManager() OVERRIDE { | 44 CreateTouchscreenDeviceManager() OVERRIDE { |
| 51 return scoped_ptr<TouchscreenDeviceManager>( | 45 return scoped_ptr<TouchscreenDeviceManager>( |
| 52 new TouchscreenDeviceManagerOzone()); | 46 new TouchscreenDeviceManagerOzone()); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 68 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; | 62 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
| 69 | 63 |
| 70 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); | 64 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); |
| 71 }; | 65 }; |
| 72 | 66 |
| 73 } // namespace | 67 } // namespace |
| 74 | 68 |
| 75 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } | 69 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } |
| 76 | 70 |
| 77 } // namespace ui | 71 } // namespace ui |
| OLD | NEW |