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

Side by Side Diff: components/arc/ime/arc_ime_bridge.cc

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased + protected ArcService direct instantiation Created 4 years, 11 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
« no previous file with comments | « components/arc/ime/arc_ime_bridge.h ('k') | components/arc/input/arc_input_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/arc/ime/arc_ime_bridge.h" 5 #include "components/arc/ime/arc_ime_bridge.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "components/arc/ime/arc_ime_ipc_host_impl.h" 8 #include "components/arc/ime/arc_ime_ipc_host_impl.h"
9 #include "ui/aura/client/focus_client.h" 9 #include "ui/aura/client/focus_client.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
(...skipping 13 matching lines...) Expand all
24 // stabilized. 24 // stabilized.
25 bool IsArcWindow(const aura::Window* window) { 25 bool IsArcWindow(const aura::Window* window) {
26 return window->name() == "ExoSurface"; 26 return window->name() == "ExoSurface";
27 } 27 }
28 28
29 } // namespace 29 } // namespace
30 30
31 //////////////////////////////////////////////////////////////////////////////// 31 ////////////////////////////////////////////////////////////////////////////////
32 // ArcImeBridge main implementation: 32 // ArcImeBridge main implementation:
33 33
34 ArcImeBridge::ArcImeBridge(ArcBridgeService* arc_bridge_service) 34 ArcImeBridge::ArcImeBridge(ArcBridgeService* bridge_service)
35 : ipc_host_(new ArcImeIpcHostImpl(this, arc_bridge_service)), 35 : ArcService(bridge_service),
36 ipc_host_(new ArcImeIpcHostImpl(this, bridge_service)),
36 ime_type_(ui::TEXT_INPUT_TYPE_NONE), 37 ime_type_(ui::TEXT_INPUT_TYPE_NONE),
37 has_composition_text_(false) { 38 has_composition_text_(false) {
38 aura::Env* env = aura::Env::GetInstanceDontCreate(); 39 aura::Env* env = aura::Env::GetInstanceDontCreate();
39 if (env) 40 if (env)
40 env->AddObserver(this); 41 env->AddObserver(this);
41 } 42 }
42 43
43 ArcImeBridge::~ArcImeBridge() { 44 ArcImeBridge::~ArcImeBridge() {
44 ui::InputMethod* const input_method = GetInputMethod(); 45 ui::InputMethod* const input_method = GetInputMethod();
45 if (input_method) 46 if (input_method)
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 bool ArcImeBridge::ChangeTextDirectionAndLayoutAlignment( 225 bool ArcImeBridge::ChangeTextDirectionAndLayoutAlignment(
225 base::i18n::TextDirection direction) { 226 base::i18n::TextDirection direction) {
226 return false; 227 return false;
227 } 228 }
228 229
229 bool ArcImeBridge::IsEditCommandEnabled(int command_id) { 230 bool ArcImeBridge::IsEditCommandEnabled(int command_id) {
230 return false; 231 return false;
231 } 232 }
232 233
233 } // namespace arc 234 } // namespace arc
OLDNEW
« no previous file with comments | « components/arc/ime/arc_ime_bridge.h ('k') | components/arc/input/arc_input_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698