| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 static const ApiID kApiID = API_ID_PPB_TEXT_INPUT; | 45 static const ApiID kApiID = API_ID_PPB_TEXT_INPUT; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Message handlers. | 48 // Message handlers. |
| 49 void OnMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type); | 49 void OnMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type); |
| 50 void OnMsgUpdateCaretPosition(PP_Instance instance, | 50 void OnMsgUpdateCaretPosition(PP_Instance instance, |
| 51 PP_Rect caret, | 51 PP_Rect caret, |
| 52 PP_Rect bounding_box); | 52 PP_Rect bounding_box); |
| 53 void OnMsgCancelCompositionText(PP_Instance instance); | 53 void OnMsgCancelCompositionText(PP_Instance instance); |
| 54 void OnMsgSelectionChanged(PP_Instance instance); | |
| 55 void OnMsgUpdateSurroundingText(PP_Instance instance, | 54 void OnMsgUpdateSurroundingText(PP_Instance instance, |
| 56 const std::string& text, | 55 const std::string& text, |
| 57 uint32_t caret, | 56 uint32_t caret, |
| 58 uint32_t anchor); | 57 uint32_t anchor); |
| 59 | 58 |
| 60 DISALLOW_COPY_AND_ASSIGN(PPB_TextInput_Proxy); | 59 DISALLOW_COPY_AND_ASSIGN(PPB_TextInput_Proxy); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace proxy | 62 } // namespace proxy |
| 64 } // namespace ppapi | 63 } // namespace ppapi |
| 65 | 64 |
| 66 #endif // PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_ | 65 #endif // PPAPI_PROXY_PPB_TEXT_INPUT_PROXY_H_ |
| OLD | NEW |