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

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

Issue 12017010: Introduce bypass logic for SetCursorLocation message. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/ibus/mock_ibus_input_context_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/base/ime/ibus_client.h" 5 #include "ui/base/ime/ibus_client.h"
6 6
7 #include "chromeos/dbus/dbus_thread_manager.h" 7 #include "chromeos/dbus/dbus_thread_manager.h"
8 #include "chromeos/dbus/ibus/ibus_input_context_client.h" 8 #include "chromeos/dbus/ibus/ibus_input_context_client.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
11 namespace ui { 11 namespace ui {
12 namespace internal { 12 namespace internal {
13 13
14 IBusClient::IBusClient() { 14 IBusClient::IBusClient() {
15 } 15 }
16 16
17 IBusClient::~IBusClient() { 17 IBusClient::~IBusClient() {
18 } 18 }
19 19
20 IBusClient::InputMethodType IBusClient::GetInputMethodType() { 20 IBusClient::InputMethodType IBusClient::GetInputMethodType() {
21 // This object cannot know the type of the current IME, hence return NORMAL. 21 // This object cannot know the type of the current IME, hence return NORMAL.
22 return INPUT_METHOD_NORMAL; 22 return INPUT_METHOD_NORMAL;
23 } 23 }
24 24
25 void IBusClient::SetCursorLocation(const gfx::Rect& cursor_location, 25 void IBusClient::SetCursorLocation(const gfx::Rect& cursor_location,
26 const gfx::Rect& composition_head) { 26 const gfx::Rect& composition_head) {
27 chromeos::IBusInputContextClient* input_context = 27 // Do nothing, because this function will be overridden with
28 chromeos::DBusThreadManager::Get()->GetIBusInputContextClient(); 28 // IBusChromeOSClientImpl.
29 DCHECK(input_context->IsObjectProxyReady());
30 input_context->SetCursorLocation(cursor_location.x(),
31 cursor_location.y(),
32 cursor_location.width(),
33 cursor_location.height());
34 } 29 }
35 30
36 } // namespace internal 31 } // namespace internal
37 } // namespace ui 32 } // namespace ui
OLDNEW
« no previous file with comments | « chromeos/dbus/ibus/mock_ibus_input_context_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698