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/events/ozone/layout/keyboard_layout_engine_manager.h" |
| 8 #include "ui/events/ozone/layout/no/no_keyboard_layout_engine.h" |
7 #include "ui/ozone/common/native_display_delegate_ozone.h" | 9 #include "ui/ozone/common/native_display_delegate_ozone.h" |
8 #include "ui/ozone/platform/caca/caca_event_source.h" | 10 #include "ui/ozone/platform/caca/caca_event_source.h" |
9 #include "ui/ozone/platform/caca/caca_window.h" | 11 #include "ui/ozone/platform/caca/caca_window.h" |
10 #include "ui/ozone/platform/caca/caca_window_manager.h" | 12 #include "ui/ozone/platform/caca/caca_window_manager.h" |
11 #include "ui/ozone/public/cursor_factory_ozone.h" | 13 #include "ui/ozone/public/cursor_factory_ozone.h" |
12 #include "ui/ozone/public/gpu_platform_support.h" | 14 #include "ui/ozone/public/gpu_platform_support.h" |
13 #include "ui/ozone/public/gpu_platform_support_host.h" | 15 #include "ui/ozone/public/gpu_platform_support_host.h" |
14 #include "ui/ozone/public/ozone_platform.h" | 16 #include "ui/ozone/public/ozone_platform.h" |
15 #include "ui/ozone/public/system_input_injector.h" | 17 #include "ui/ozone/public/system_input_injector.h" |
16 | 18 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 55 } |
54 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 56 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
55 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); | 57 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); |
56 } | 58 } |
57 | 59 |
58 void InitializeUI() override { | 60 void InitializeUI() override { |
59 window_manager_.reset(new CacaWindowManager); | 61 window_manager_.reset(new CacaWindowManager); |
60 event_source_.reset(new CacaEventSource()); | 62 event_source_.reset(new CacaEventSource()); |
61 cursor_factory_ozone_.reset(new CursorFactoryOzone()); | 63 cursor_factory_ozone_.reset(new CursorFactoryOzone()); |
62 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); | 64 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |
| 65 KeyboardLayoutEngineManager::Create( |
| 66 make_scoped_ptr(new NoKeyboardLayoutEngine())); |
63 } | 67 } |
64 | 68 |
65 void InitializeGPU() override { | 69 void InitializeGPU() override { |
66 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); | 70 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); |
67 } | 71 } |
68 | 72 |
69 private: | 73 private: |
70 scoped_ptr<CacaWindowManager> window_manager_; | 74 scoped_ptr<CacaWindowManager> window_manager_; |
71 scoped_ptr<CacaEventSource> event_source_; | 75 scoped_ptr<CacaEventSource> event_source_; |
72 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; | 76 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
73 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; | 77 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; |
74 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; | 78 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; |
75 | 79 |
76 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); | 80 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); |
77 }; | 81 }; |
78 | 82 |
79 } // namespace | 83 } // namespace |
80 | 84 |
81 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } | 85 OzonePlatform* CreateOzonePlatformCaca() { |
| 86 return new OzonePlatformCaca; |
| 87 } |
82 | 88 |
83 } // namespace ui | 89 } // namespace ui |
OLD | NEW |