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

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: Fix WinAura 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
« no previous file with comments | « ui/base/ime/ibus_client.h ('k') | ui/base/ime/ibus_client_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f5d2e56b008bae3c79dea7f69279cff5089165ee
--- /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* input_context =
+ chromeos::DBusThreadManager::Get()->GetIBusInputContextClient();
+ DCHECK(input_context->IsObjectProxyReady());
+ input_context->SetCursorLocation(cursor_location.x(),
+ cursor_location.y(),
+ cursor_location.width(),
+ cursor_location.height());
+}
+
+} // namespace internal
+} // namespace ui
« no previous file with comments | « ui/base/ime/ibus_client.h ('k') | ui/base/ime/ibus_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698