Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: ui/ozone/platform/caca/ozone_platform_caca.cc

Issue 1208603002: content: implement unittests backend for Ozone GBM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix NavigationControllerTest failure Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/common/stub_overlay_manager.h" 10 #include "ui/ozone/common/stub_overlay_manager.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); 70 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
71 input_controller_ = CreateStubInputController(); 71 input_controller_ = CreateStubInputController();
72 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( 72 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
73 make_scoped_ptr(new NoKeyboardLayoutEngine())); 73 make_scoped_ptr(new NoKeyboardLayoutEngine()));
74 } 74 }
75 75
76 void InitializeGPU() override { 76 void InitializeGPU() override {
77 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); 77 gpu_platform_support_.reset(CreateStubGpuPlatformSupport());
78 } 78 }
79 79
80 void InitializeTest() override {
81 InitializeUI();
82 InitializeGPU();
83 }
84
80 private: 85 private:
81 scoped_ptr<CacaWindowManager> window_manager_; 86 scoped_ptr<CacaWindowManager> window_manager_;
82 scoped_ptr<CacaEventSource> event_source_; 87 scoped_ptr<CacaEventSource> event_source_;
83 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; 88 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
84 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; 89 scoped_ptr<GpuPlatformSupport> gpu_platform_support_;
85 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; 90 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_;
86 scoped_ptr<InputController> input_controller_; 91 scoped_ptr<InputController> input_controller_;
87 scoped_ptr<OverlayManagerOzone> overlay_manager_; 92 scoped_ptr<OverlayManagerOzone> overlay_manager_;
88 93
89 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); 94 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca);
90 }; 95 };
91 96
92 } // namespace 97 } // namespace
93 98
94 OzonePlatform* CreateOzonePlatformCaca() { 99 OzonePlatform* CreateOzonePlatformCaca() {
95 return new OzonePlatformCaca; 100 return new OzonePlatformCaca;
96 } 101 }
97 102
98 } // namespace ui 103 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698