| 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/ozone/common/native_display_delegate_ozone.h" | 7 #include "ui/ozone/common/native_display_delegate_ozone.h" |
| 8 #include "ui/ozone/platform/caca/caca_event_source.h" | 8 #include "ui/ozone/platform/caca/caca_event_source.h" |
| 9 #include "ui/ozone/platform/caca/caca_window.h" | 9 #include "ui/ozone/platform/caca/caca_window.h" |
| 10 #include "ui/ozone/platform/caca/caca_window_manager.h" | 10 #include "ui/ozone/platform/caca/caca_window_manager.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 CursorFactoryOzone* GetCursorFactoryOzone() override { | 27 CursorFactoryOzone* GetCursorFactoryOzone() override { |
| 28 return cursor_factory_ozone_.get(); | 28 return cursor_factory_ozone_.get(); |
| 29 } | 29 } |
| 30 GpuPlatformSupport* GetGpuPlatformSupport() override { | 30 GpuPlatformSupport* GetGpuPlatformSupport() override { |
| 31 return NULL; // no GPU support | 31 return NULL; // no GPU support |
| 32 } | 32 } |
| 33 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { | 33 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { |
| 34 return NULL; // no GPU support | 34 return NULL; // no GPU support |
| 35 } | 35 } |
| 36 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
| 37 return nullptr; // no input injection support. |
| 38 } |
| 36 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 39 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 37 PlatformWindowDelegate* delegate, | 40 PlatformWindowDelegate* delegate, |
| 38 const gfx::Rect& bounds) override { | 41 const gfx::Rect& bounds) override { |
| 39 scoped_ptr<CacaWindow> caca_window(new CacaWindow( | 42 scoped_ptr<CacaWindow> caca_window(new CacaWindow( |
| 40 delegate, window_manager_.get(), event_source_.get(), bounds)); | 43 delegate, window_manager_.get(), event_source_.get(), bounds)); |
| 41 if (!caca_window->Initialize()) | 44 if (!caca_window->Initialize()) |
| 42 return nullptr; | 45 return nullptr; |
| 43 return caca_window.Pass(); | 46 return caca_window.Pass(); |
| 44 } | 47 } |
| 45 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 48 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 60 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; | 63 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
| 61 | 64 |
| 62 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); | 65 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace | 68 } // namespace |
| 66 | 69 |
| 67 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } | 70 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } |
| 68 | 71 |
| 69 } // namespace ui | 72 } // namespace ui |
| OLD | NEW |