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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/ibus_client.cc
diff --git a/ui/base/ime/ibus_client.cc b/ui/base/ime/ibus_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..12db43955f9acd0aebe5210d299e374fb05bc489
--- /dev/null
+++ b/ui/base/ime/ibus_client.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/ime/ibus_client.h"
+
+#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/ibus/ibus_input_context_client.h"
+#include "ui/gfx/rect.h"
+
+namespace ui {
+namespace internal {
+
+IBusClient::IBusClient() {
+}
+
+IBusClient::~IBusClient() {
+}
+
+IBusClient::InputMethodType IBusClient::GetInputMethodType() {
+ // This object cannot know the type of the current IME, hence return NORMAL.
+ return INPUT_METHOD_NORMAL;
+}
+
+void IBusClient::SetCursorLocation(const gfx::Rect& cursor_location,
+ const gfx::Rect& composition_head) {
+ 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.
+ chromeos::DBusThreadManager::Get()->GetIBusInputContextClient();
+ DCHECK(client->IsConnected());
+ client->SetCursorLocation(cursor_location.x(),
+ cursor_location.y(),
+ cursor_location.width(),
+ cursor_location.height());
+}
+
+} // namespace internal
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698