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_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // PPB_Instance_FunctionAPI implementation. | 45 // PPB_Instance_FunctionAPI implementation. |
46 virtual PP_Bool BindGraphics(PP_Instance instance, | 46 virtual PP_Bool BindGraphics(PP_Instance instance, |
47 PP_Resource device) OVERRIDE; | 47 PP_Resource device) OVERRIDE; |
48 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; | 48 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; |
49 virtual const ViewData* GetViewData(PP_Instance instance) OVERRIDE; | 49 virtual const ViewData* GetViewData(PP_Instance instance) OVERRIDE; |
50 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; | 50 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; |
51 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; | 51 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; |
52 virtual PP_Var ExecuteScript(PP_Instance instance, | 52 virtual PP_Var ExecuteScript(PP_Instance instance, |
53 PP_Var script, | 53 PP_Var script, |
54 PP_Var* exception) OVERRIDE; | 54 PP_Var* exception) OVERRIDE; |
| 55 virtual uint32_t AudioHardwareOutputSampleRate(PP_Instance instance) OVERRIDE; |
| 56 virtual uint32_t AudioHardwareOutputBufferSize(PP_Instance instance) OVERRIDE; |
55 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE; | 57 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE; |
56 virtual void NumberOfFindResultsChanged(PP_Instance instance, | 58 virtual void NumberOfFindResultsChanged(PP_Instance instance, |
57 int32_t total, | 59 int32_t total, |
58 PP_Bool final_result) OVERRIDE; | 60 PP_Bool final_result) OVERRIDE; |
59 virtual void SelectedFindResultChanged(PP_Instance instance, | 61 virtual void SelectedFindResultChanged(PP_Instance instance, |
60 int32_t index) OVERRIDE; | 62 int32_t index) OVERRIDE; |
61 virtual PP_Bool SetFullscreen(PP_Instance instance, | 63 virtual PP_Bool SetFullscreen(PP_Instance instance, |
62 PP_Bool fullscreen) OVERRIDE; | 64 PP_Bool fullscreen) OVERRIDE; |
63 virtual PP_Bool GetScreenSize(PP_Instance instance, | 65 virtual PP_Bool GetScreenSize(PP_Instance instance, |
64 PP_Size* size) OVERRIDE; | 66 PP_Size* size) OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 void OnHostMsgGetOwnerElementObject(PP_Instance instance, | 107 void OnHostMsgGetOwnerElementObject(PP_Instance instance, |
106 SerializedVarReturnValue result); | 108 SerializedVarReturnValue result); |
107 void OnHostMsgBindGraphics(PP_Instance instance, | 109 void OnHostMsgBindGraphics(PP_Instance instance, |
108 const ppapi::HostResource& device, | 110 const ppapi::HostResource& device, |
109 PP_Bool* result); | 111 PP_Bool* result); |
110 void OnHostMsgIsFullFrame(PP_Instance instance, PP_Bool* result); | 112 void OnHostMsgIsFullFrame(PP_Instance instance, PP_Bool* result); |
111 void OnHostMsgExecuteScript(PP_Instance instance, | 113 void OnHostMsgExecuteScript(PP_Instance instance, |
112 SerializedVarReceiveInput script, | 114 SerializedVarReceiveInput script, |
113 SerializedVarOutParam out_exception, | 115 SerializedVarOutParam out_exception, |
114 SerializedVarReturnValue result); | 116 SerializedVarReturnValue result); |
| 117 void OnHostMsgAudioHardwareOutputSampleRate(PP_Instance instance, |
| 118 uint32_t *result); |
| 119 void OnHostMsgAudioHardwareOutputBufferSize(PP_Instance instance, |
| 120 uint32_t *result); |
115 void OnHostMsgGetDefaultCharSet(PP_Instance instance, | 121 void OnHostMsgGetDefaultCharSet(PP_Instance instance, |
116 SerializedVarReturnValue result); | 122 SerializedVarReturnValue result); |
117 void OnHostMsgSetFullscreen(PP_Instance instance, | 123 void OnHostMsgSetFullscreen(PP_Instance instance, |
118 PP_Bool fullscreen, | 124 PP_Bool fullscreen, |
119 PP_Bool* result); | 125 PP_Bool* result); |
120 void OnHostMsgGetScreenSize(PP_Instance instance, | 126 void OnHostMsgGetScreenSize(PP_Instance instance, |
121 PP_Bool* result, | 127 PP_Bool* result, |
122 PP_Size* size); | 128 PP_Size* size); |
123 void OnHostMsgFlashSetFullscreen(PP_Instance instance, | 129 void OnHostMsgFlashSetFullscreen(PP_Instance instance, |
124 PP_Bool fullscreen, | 130 PP_Bool fullscreen, |
(...skipping 30 matching lines...) Expand all Loading... |
155 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 161 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
156 | 162 |
157 pp::CompletionCallbackFactory<PPB_Instance_Proxy, | 163 pp::CompletionCallbackFactory<PPB_Instance_Proxy, |
158 ProxyNonThreadSafeRefCount> callback_factory_; | 164 ProxyNonThreadSafeRefCount> callback_factory_; |
159 }; | 165 }; |
160 | 166 |
161 } // namespace proxy | 167 } // namespace proxy |
162 } // namespace ppapi | 168 } // namespace ppapi |
163 | 169 |
164 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 170 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |