| OLD | NEW |
| (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_ | |
| OLD | NEW |