| 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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/c/dev/ppb_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 virtual void UpdateCaretPosition(PP_Instance instance, | 139 virtual void UpdateCaretPosition(PP_Instance instance, |
| 140 const PP_Rect& caret, | 140 const PP_Rect& caret, |
| 141 const PP_Rect& bounding_box) = 0; | 141 const PP_Rect& bounding_box) = 0; |
| 142 virtual void CancelCompositionText(PP_Instance instance) = 0; | 142 virtual void CancelCompositionText(PP_Instance instance) = 0; |
| 143 virtual void SelectionChanged(PP_Instance instance) = 0; | 143 virtual void SelectionChanged(PP_Instance instance) = 0; |
| 144 virtual void UpdateSurroundingText(PP_Instance instance, | 144 virtual void UpdateSurroundingText(PP_Instance instance, |
| 145 const char* text, | 145 const char* text, |
| 146 uint32_t caret, | 146 uint32_t caret, |
| 147 uint32_t anchor) = 0; | 147 uint32_t anchor) = 0; |
| 148 | 148 |
| 149 // Zoom. | |
| 150 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | |
| 151 virtual void ZoomLimitsChanged(PP_Instance instance, | |
| 152 double minimum_factor, | |
| 153 double maximum_factor) = 0; | |
| 154 // Testing and URLUtil. | 149 // Testing and URLUtil. |
| 155 virtual PP_Var GetDocumentURL(PP_Instance instance, | 150 virtual PP_Var GetDocumentURL(PP_Instance instance, |
| 156 PP_URLComponents_Dev* components) = 0; | 151 PP_URLComponents_Dev* components) = 0; |
| 157 #if !defined(OS_NACL) | 152 #if !defined(OS_NACL) |
| 158 // Content Decryptor. | 153 // Content Decryptor. |
| 159 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; | 154 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; |
| 160 virtual void PromiseResolvedWithSession(PP_Instance instance, | 155 virtual void PromiseResolvedWithSession(PP_Instance instance, |
| 161 uint32 promise_id, | 156 uint32 promise_id, |
| 162 PP_Var session_id_var) = 0; | 157 PP_Var session_id_var) = 0; |
| 163 virtual void PromiseRejected(PP_Instance instance, | 158 virtual void PromiseRejected(PP_Instance instance, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 PP_URLComponents_Dev* components) = 0; | 214 PP_URLComponents_Dev* components) = 0; |
| 220 #endif // !defined(OS_NACL) | 215 #endif // !defined(OS_NACL) |
| 221 | 216 |
| 222 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 217 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
| 223 }; | 218 }; |
| 224 | 219 |
| 225 } // namespace thunk | 220 } // namespace thunk |
| 226 } // namespace ppapi | 221 } // namespace ppapi |
| 227 | 222 |
| 228 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 223 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |