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

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

Issue 742103002: Ozone keyboard layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lite-code
Patch Set: address review comments (Wez) + cleanup Created 6 years 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"
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/ozone_platform.h" 14 #include "ui/ozone/public/ozone_platform.h"
13 #include "ui/ozone/public/system_input_injector.h" 15 #include "ui/ozone/public/system_input_injector.h"
14 16
15 namespace ui { 17 namespace ui {
16 18
(...skipping 30 matching lines...) Expand all
47 return caca_window.Pass(); 49 return caca_window.Pass();
48 } 50 }
49 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { 51 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
50 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); 52 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone());
51 } 53 }
52 54
53 void InitializeUI() override { 55 void InitializeUI() override {
54 window_manager_.reset(new CacaWindowManager); 56 window_manager_.reset(new CacaWindowManager);
55 event_source_.reset(new CacaEventSource()); 57 event_source_.reset(new CacaEventSource());
56 cursor_factory_ozone_.reset(new CursorFactoryOzone()); 58 cursor_factory_ozone_.reset(new CursorFactoryOzone());
59 KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
60 make_scoped_ptr(new NoKeyboardLayoutEngine()));
57 } 61 }
58 62
59 void InitializeGPU() override {} 63 void InitializeGPU() override {}
60 64
61 private: 65 private:
62 scoped_ptr<CacaWindowManager> window_manager_; 66 scoped_ptr<CacaWindowManager> window_manager_;
63 scoped_ptr<CacaEventSource> event_source_; 67 scoped_ptr<CacaEventSource> event_source_;
64 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; 68 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
65 69
66 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); 70 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca);
67 }; 71 };
68 72
69 } // namespace 73 } // namespace
70 74
71 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } 75 OzonePlatform* CreateOzonePlatformCaca() {
76 return new OzonePlatformCaca;
77 }
72 78
73 } // namespace ui 79 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698