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" | 7 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
8 #include "ui/events/ozone/layout/no/no_keyboard_layout_engine.h" | 8 #include "ui/events/ozone/layout/no/no_keyboard_layout_engine.h" |
9 #include "ui/ozone/common/native_display_delegate_ozone.h" | 9 #include "ui/ozone/common/native_display_delegate_ozone.h" |
10 #include "ui/ozone/platform/caca/caca_event_source.h" | 10 #include "ui/ozone/platform/caca/caca_event_source.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); | 65 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |
66 input_controller_ = CreateStubInputController(); | 66 input_controller_ = CreateStubInputController(); |
67 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( | 67 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( |
68 make_scoped_ptr(new NoKeyboardLayoutEngine())); | 68 make_scoped_ptr(new NoKeyboardLayoutEngine())); |
69 } | 69 } |
70 | 70 |
71 void InitializeGPU() override { | 71 void InitializeGPU() override { |
72 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); | 72 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); |
73 } | 73 } |
74 | 74 |
| 75 void InitializeGpuPostMainLoop() override {} |
| 76 |
75 private: | 77 private: |
76 scoped_ptr<CacaWindowManager> window_manager_; | 78 scoped_ptr<CacaWindowManager> window_manager_; |
77 scoped_ptr<CacaEventSource> event_source_; | 79 scoped_ptr<CacaEventSource> event_source_; |
78 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; | 80 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
79 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; | 81 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; |
80 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; | 82 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; |
81 scoped_ptr<InputController> input_controller_; | 83 scoped_ptr<InputController> input_controller_; |
82 | 84 |
83 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); | 85 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); |
84 }; | 86 }; |
85 | 87 |
86 } // namespace | 88 } // namespace |
87 | 89 |
88 OzonePlatform* CreateOzonePlatformCaca() { | 90 OzonePlatform* CreateOzonePlatformCaca() { |
89 return new OzonePlatformCaca; | 91 return new OzonePlatformCaca; |
90 } | 92 } |
91 | 93 |
92 } // namespace ui | 94 } // namespace ui |
OLD | NEW |