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

Side by Side Diff: ui/base/ime/ibus_client.cc

Issue 10656017: Clean UP: Remove IBusClientImpl from ui/base/ime/* (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cl for review Created 8 years, 6 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/ime/ibus_client.h"
6
7 #include "chromeos/dbus/dbus_thread_manager.h"
8 #include "chromeos/dbus/ibus/ibus_input_context_client.h"
9 #include "ui/gfx/rect.h"
10
11 namespace ui {
12 namespace internal {
13
14 IBusClient::IBusClient() {
15 }
16
17 IBusClient::~IBusClient() {
18 }
19
20 IBusClient::InputMethodType IBusClient::GetInputMethodType() {
21 // This object cannot know the type of the current IME, hence return NORMAL.
22 return INPUT_METHOD_NORMAL;
23 }
24
25 void IBusClient::SetCursorLocation(const gfx::Rect& cursor_location,
26 const gfx::Rect& composition_head) {
27 chromeos::IBusInputContextClient* client =
Yusuke Sato 2012/06/25 13:41:33 I prefer input_context or input_context_client.
Seigo Nonaka 2012/06/28 03:43:03 Done.
28 chromeos::DBusThreadManager::Get()->GetIBusInputContextClient();
29 DCHECK(client->IsConnected());
30 client->SetCursorLocation(cursor_location.x(),
31 cursor_location.y(),
32 cursor_location.width(),
33 cursor_location.height());
34 }
35
36 } // namespace internal
37 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698