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 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_url_util_dev.h" | 8 #include "ppapi/c/dev/ppb_url_util_dev.h" |
9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
10 #include "ppapi/c/ppb_instance.h" | 10 #include "ppapi/c/ppb_instance.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 virtual int32_t LockMouse(PP_Instance instance, | 76 virtual int32_t LockMouse(PP_Instance instance, |
77 PP_CompletionCallback callback) = 0; | 77 PP_CompletionCallback callback) = 0; |
78 virtual void UnlockMouse(PP_Instance instance) = 0; | 78 virtual void UnlockMouse(PP_Instance instance) = 0; |
79 | 79 |
80 // Zoom. | 80 // Zoom. |
81 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; | 81 virtual void ZoomChanged(PP_Instance instance, double factor) = 0; |
82 virtual void ZoomLimitsChanged(PP_Instance instance, | 82 virtual void ZoomLimitsChanged(PP_Instance instance, |
83 double minimum_factor, | 83 double minimum_factor, |
84 double maximium_factor) = 0; | 84 double maximium_factor) = 0; |
85 | 85 |
86 // QueryPolicy. | |
87 virtual void SubscribeToPolicyUpdates(PP_Instance instance) = 0; | |
88 | |
89 // URLUtil. | 86 // URLUtil. |
90 virtual PP_Var ResolveRelativeToDocument( | 87 virtual PP_Var ResolveRelativeToDocument( |
91 PP_Instance instance, | 88 PP_Instance instance, |
92 PP_Var relative, | 89 PP_Var relative, |
93 PP_URLComponents_Dev* components) = 0; | 90 PP_URLComponents_Dev* components) = 0; |
94 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; | 91 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) = 0; |
95 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 92 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
96 PP_Instance target) = 0; | 93 PP_Instance target) = 0; |
97 virtual PP_Var GetDocumentURL(PP_Instance instance, | 94 virtual PP_Var GetDocumentURL(PP_Instance instance, |
98 PP_URLComponents_Dev* components) = 0; | 95 PP_URLComponents_Dev* components) = 0; |
99 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, | 96 virtual PP_Var GetPluginInstanceURL(PP_Instance instance, |
100 PP_URLComponents_Dev* components) = 0; | 97 PP_URLComponents_Dev* components) = 0; |
101 | 98 |
102 static const proxy::InterfaceID interface_id = | 99 static const proxy::InterfaceID interface_id = |
103 proxy::INTERFACE_ID_PPB_INSTANCE; | 100 proxy::INTERFACE_ID_PPB_INSTANCE; |
104 }; | 101 }; |
105 | 102 |
106 } // namespace thunk | 103 } // namespace thunk |
107 } // namespace ppapi | 104 } // namespace ppapi |
108 | 105 |
109 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 106 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |