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 #include "ppapi/c/ppb_text_input_controller.h" |
| 6 |
5 #include "ppapi/thunk/enter.h" | 7 #include "ppapi/thunk/enter.h" |
6 #include "ppapi/thunk/thunk.h" | 8 #include "ppapi/thunk/thunk.h" |
7 #include "ppapi/thunk/ppb_instance_api.h" | 9 #include "ppapi/thunk/ppb_instance_api.h" |
8 | 10 |
9 namespace ppapi { | 11 namespace ppapi { |
10 namespace thunk { | 12 namespace thunk { |
11 | 13 |
12 namespace { | 14 namespace { |
13 | 15 |
14 void SetTextInputType(PP_Instance instance, PP_TextInput_Type type) { | 16 void SetTextInputType(PP_Instance instance, PP_TextInput_Type type) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 }; | 53 }; |
52 | 54 |
53 const PPB_TextInput_Dev g_ppb_textinput_0_2_thunk = { | 55 const PPB_TextInput_Dev g_ppb_textinput_0_2_thunk = { |
54 &SetTextInputType, | 56 &SetTextInputType, |
55 &UpdateCaretPosition, | 57 &UpdateCaretPosition, |
56 &CancelCompositionText, | 58 &CancelCompositionText, |
57 &UpdateSurroundingText, | 59 &UpdateSurroundingText, |
58 &SelectionChanged, | 60 &SelectionChanged, |
59 }; | 61 }; |
60 | 62 |
| 63 const PPB_TextInputController_1_0 g_ppb_textinputcontroller_1_0_thunk = { |
| 64 &SetTextInputType, |
| 65 &UpdateCaretPosition, |
| 66 &CancelCompositionText, |
| 67 &UpdateSurroundingText, |
| 68 }; |
| 69 |
61 } // namespace | 70 } // namespace |
62 | 71 |
63 const PPB_TextInput_Dev_0_1* GetPPB_TextInput_Dev_0_1_Thunk() { | 72 const PPB_TextInput_Dev_0_1* GetPPB_TextInput_Dev_0_1_Thunk() { |
64 return &g_ppb_textinput_0_1_thunk; | 73 return &g_ppb_textinput_0_1_thunk; |
65 } | 74 } |
66 | 75 |
67 const PPB_TextInput_Dev_0_2* GetPPB_TextInput_Dev_0_2_Thunk() { | 76 const PPB_TextInput_Dev_0_2* GetPPB_TextInput_Dev_0_2_Thunk() { |
68 return &g_ppb_textinput_0_2_thunk; | 77 return &g_ppb_textinput_0_2_thunk; |
69 } | 78 } |
70 | 79 |
| 80 const PPB_TextInputController_1_0* GetPPB_TextInputController_1_0_Thunk() { |
| 81 return &g_ppb_textinputcontroller_1_0_thunk; |
| 82 } |
| 83 |
71 } // namespace thunk | 84 } // namespace thunk |
72 } // namespace ppapi | 85 } // namespace ppapi |
OLD | NEW |