OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "ppapi/shared_impl/function_group_base.h" | 10 #include "ppapi/shared_impl/function_group_base.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ::ppapi::thunk::PPB_TextInput_FunctionAPI* | 25 virtual ::ppapi::thunk::PPB_TextInput_FunctionAPI* |
26 AsPPB_TextInput_FunctionAPI() OVERRIDE; | 26 AsPPB_TextInput_FunctionAPI() OVERRIDE; |
27 | 27 |
28 // PPB_TextInput_FunctionAPI implementation. | 28 // PPB_TextInput_FunctionAPI implementation. |
29 virtual void SetTextInputType(PP_Instance instance, | 29 virtual void SetTextInputType(PP_Instance instance, |
30 PP_TextInput_Type type) OVERRIDE; | 30 PP_TextInput_Type type) OVERRIDE; |
31 virtual void UpdateCaretPosition(PP_Instance instance, | 31 virtual void UpdateCaretPosition(PP_Instance instance, |
32 const PP_Rect& caret, | 32 const PP_Rect& caret, |
33 const PP_Rect& bounding_box) OVERRIDE; | 33 const PP_Rect& bounding_box) OVERRIDE; |
34 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; | 34 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; |
| 35 virtual void SelectionChanged(PP_Instance instance) OVERRIDE; |
| 36 virtual void UpdateSurroundingText(PP_Instance instance, |
| 37 const char* text, |
| 38 uint32_t caret, |
| 39 uint32_t anchor) OVERRIDE; |
35 | 40 |
36 private: | 41 private: |
37 PluginInstance* instance_; | 42 PluginInstance* instance_; |
38 DISALLOW_COPY_AND_ASSIGN(PPB_TextInput_Impl); | 43 DISALLOW_COPY_AND_ASSIGN(PPB_TextInput_Impl); |
39 }; | 44 }; |
40 | 45 |
41 } // namespace ppapi | 46 } // namespace ppapi |
42 } // namespace webkit | 47 } // namespace webkit |
43 | 48 |
44 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_ | 49 #endif // WEBKIT_PLUGINS_PPAPI_PPB_TEXT_INPUT_IMPL_H_ |
OLD | NEW |