| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_IME_CONTROL_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_IME_CONTROL_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "ppapi/shared_impl/function_group_base.h" |
| 11 #include "ppapi/thunk/ppb_ime_control_api.h" |
| 12 |
| 13 namespace webkit { |
| 14 namespace ppapi { |
| 15 |
| 16 class PluginInstance; |
| 17 |
| 18 class PPAPI_SHARED_EXPORT PPB_IMEControl_Impl |
| 19 : public ::ppapi::FunctionGroupBase, |
| 20 public ::ppapi::thunk::PPB_IMEControl_FunctionAPI { |
| 21 public: |
| 22 PPB_IMEControl_Impl(PluginInstance* instance); |
| 23 |
| 24 // FunctionGroupBase overrides. |
| 25 virtual ::ppapi::thunk::PPB_IMEControl_FunctionAPI* |
| 26 AsPPB_IMEControl_FunctionAPI() OVERRIDE; |
| 27 |
| 28 // PPB_IMEControl_FunctionAPI implementation. |
| 29 virtual void SetTextInputType(PP_Instance instance, |
| 30 PP_TextInput_Type type) OVERRIDE; |
| 31 virtual void UpdateCaretPosition(PP_Instance instance, PP_Rect caret, |
| 32 PP_Rect boundingBox) OVERRIDE; |
| 33 virtual void ConfirmCompositionText(PP_Instance instance) OVERRIDE; |
| 34 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; |
| 35 |
| 36 private: |
| 37 PluginInstance* instance_; |
| 38 DISALLOW_COPY_AND_ASSIGN(PPB_IMEControl_Impl); |
| 39 }; |
| 40 |
| 41 } // namespace ppapi |
| 42 } // namespace webkit |
| 43 |
| 44 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IME_CONTROL_IMPL_H_ |
| OLD | NEW |