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_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_console_dev.h" | 8 #include "ppapi/c/dev/ppb_console_dev.h" |
| 9 #include "ppapi/c/dev/ppb_text_input_dev.h" |
9 #include "ppapi/c/dev/ppb_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
10 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
11 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
12 #include "ppapi/c/pp_size.h" | 13 #include "ppapi/c/pp_size.h" |
13 #include "ppapi/c/pp_time.h" | 14 #include "ppapi/c/pp_time.h" |
14 #include "ppapi/c/ppb_audio_config.h" | 15 #include "ppapi/c/ppb_audio_config.h" |
15 #include "ppapi/c/ppb_gamepad.h" | 16 #include "ppapi/c/ppb_gamepad.h" |
16 #include "ppapi/c/ppb_instance.h" | 17 #include "ppapi/c/ppb_instance.h" |
17 #include "ppapi/c/ppb_mouse_cursor.h" | 18 #include "ppapi/c/ppb_mouse_cursor.h" |
18 #include "ppapi/c/private/ppb_instance_private.h" | 19 #include "ppapi/c/private/ppb_instance_private.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual PP_Bool SetCursor(PP_Instance instance, | 104 virtual PP_Bool SetCursor(PP_Instance instance, |
104 PP_MouseCursor_Type type, | 105 PP_MouseCursor_Type type, |
105 PP_Resource image, | 106 PP_Resource image, |
106 const PP_Point* hot_spot) = 0; | 107 const PP_Point* hot_spot) = 0; |
107 | 108 |
108 // MouseLock. | 109 // MouseLock. |
109 virtual int32_t LockMouse(PP_Instance instance, | 110 virtual int32_t LockMouse(PP_Instance instance, |
110 PP_CompletionCallback callback) = 0; | 111 PP_CompletionCallback callback) = 0; |
111 virtual void UnlockMouse(PP_Instance instance) = 0; | 112 virtual void UnlockMouse(PP_Instance instance) = 0; |
112 | 113 |
| 114 // TextInput. |
| 115 virtual void SetTextInputType(PP_Instance instance, |
| 116 PP_TextInput_Type type) = 0; |
| 117 virtual void UpdateCaretPosition(PP_Instance instance, |
| 118 const PP_Rect& caret, |
| 119 const PP_Rect& bounding_box) = 0; |
| 120 virtual void CancelCompositionText(PP_Instance instance) = 0; |
| 121 virtual void SelectionChanged(PP_Instance instance) = 0; |
| 122 virtual void UpdateSurroundingText(PP_Instance instance, |
| 123 const char* text, |
| 124 uint32_t caret, |
| 125 uint32_t anchor) = 0; |
| 126 |
113 // Zoom. | 127 // Zoom. |
114 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 128 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
115 virtual void ZoomLimitsChanged(PP_Instance instance, | 129 virtual void ZoomLimitsChanged(PP_Instance instance, |
116 double minimum_factor, | 130 double minimum_factor, |
117 double maximium_factor) = 0; | 131 double maximium_factor) = 0; |
118 #if !defined(OS_NACL) | 132 #if !defined(OS_NACL) |
119 // URLUtil. | 133 // URLUtil. |
120 virtual PP_Var ResolveRelativeToDocument( | 134 virtual PP_Var ResolveRelativeToDocument( |
121 PP_Instance instance, | 135 PP_Instance instance, |
122 PP_Var relative, | 136 PP_Var relative, |
123 PP_URLComponents_Dev* components) = 0; | 137 PP_URLComponents_Dev* components) = 0; |
124 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; | 138 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; |
125 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 139 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
126 PP_Instance target) = 0; | 140 PP_Instance target) = 0; |
127 virtual PP_Var GetDocumentURL(PP_Instance instance, | 141 virtual PP_Var GetDocumentURL(PP_Instance instance, |
128 PP_URLComponents_Dev* components) = 0; | 142 PP_URLComponents_Dev* components) = 0; |
129 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 143 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
130 PP_URLComponents_Dev* components) = 0; | 144 PP_URLComponents_Dev* components) = 0; |
131 #endif // !defined(OS_NACL) | 145 #endif // !defined(OS_NACL) |
132 | 146 |
133 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 147 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
134 }; | 148 }; |
135 | 149 |
136 } // namespace thunk | 150 } // namespace thunk |
137 } // namespace ppapi | 151 } // namespace ppapi |
138 | 152 |
139 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 153 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |