| 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_IMPL_H_ | |
| 6 #define UI_BASE_IME_IBUS_CLIENT_IMPL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "ui/base/ime/ibus_client.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 | |
| 14 namespace internal { | |
| 15 | |
| 16 // An interface implemented by the object that sends and receives an event to | |
| 17 // and from ibus-daemon. | |
| 18 class UI_EXPORT IBusClientImpl : public IBusClient { | |
| 19 public: | |
| 20 IBusClientImpl(); | |
| 21 virtual ~IBusClientImpl(); | |
| 22 | |
| 23 // ui::internal::IBusClient overrides: | |
| 24 virtual bool IsConnected() OVERRIDE; | |
| 25 virtual bool IsContextReady() OVERRIDE; | |
| 26 virtual void CreateContext(PendingCreateICRequest* request) OVERRIDE; | |
| 27 virtual void DestroyProxy() OVERRIDE; | |
| 28 virtual void SetCapabilities( | |
| 29 InlineCompositionCapability inline_type) OVERRIDE; | |
| 30 virtual void FocusIn() OVERRIDE; | |
| 31 virtual void FocusOut() OVERRIDE; | |
| 32 virtual void Reset() OVERRIDE; | |
| 33 virtual InputMethodType GetInputMethodType() OVERRIDE; | |
| 34 virtual void SetCursorLocation(const gfx::Rect& cursor_location, | |
| 35 const gfx::Rect& composition_head) OVERRIDE; | |
| 36 virtual void SendKeyEvent( | |
| 37 uint32 keyval, | |
| 38 uint32 keycode, | |
| 39 uint32 state, | |
| 40 const chromeos::IBusInputContextClient::ProcessKeyEventCallback& | |
| 41 cb) OVERRIDE; | |
| 42 private: | |
| 43 DISALLOW_COPY_AND_ASSIGN(IBusClientImpl); | |
| 44 }; | |
| 45 | |
| 46 } // namespace internal | |
| 47 } // namespace ui | |
| 48 | |
| 49 #endif // UI_BASE_IME_IBUS_CLIENT_IMPL_H_ | |
| OLD | NEW |