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

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

Issue 11956008: Move SetCursorLocation bypass code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittests: add TextInputTestSupport initialzation Created 7 years, 10 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') | ui/base/ime/ibus_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_BASE_IME_IBUS_CLIENT_H_
6 #define UI_BASE_IME_IBUS_CLIENT_H_
7
8 #include "base/basictypes.h"
9 #include "ui/base/ui_export.h"
10
11 namespace gfx {
12 class Rect;
13 } // namespace gfx
14 namespace ui {
15
16 namespace internal {
17
18 // A class for sending and receiveing an event to and from ibus-daemon.
19 class UI_EXPORT IBusClient {
20 public:
21 IBusClient();
22 virtual ~IBusClient();
23
24 // The type of IME which is currently selected. Implementations should return
25 // the former when no IME is selected or the type of the current IME is
26 // unknown.
27 enum InputMethodType {
28 INPUT_METHOD_NORMAL = 0,
29 INPUT_METHOD_XKB_LAYOUT,
30 };
31
32 // Returns the current input method type.
33 virtual InputMethodType GetInputMethodType();
34
35 // Resets the cursor location asynchronously.
36 virtual void SetCursorLocation(const gfx::Rect& cursor_location,
37 const gfx::Rect& composition_head);
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(IBusClient);
41 };
42
43 } // namespace internal
44 } // namespace ui
45
46 #endif // UI_BASE_IME_IBUS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/ibus/mock_ibus_input_context_client.cc ('k') | ui/base/ime/ibus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698