Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(677)

Unified Diff: ppapi/thunk/ppb_flash_thunk.cc

Issue 11413200: Refactored PPB_Flash GetSettings to the new pepper resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/thunk/ppb_flash_functions_api.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_flash_thunk.cc
diff --git a/ppapi/thunk/ppb_flash_thunk.cc b/ppapi/thunk/ppb_flash_thunk.cc
index 1f809eb9265f6fdbd60be240c42a8c851b632e59..b9735f43efb642f586ef8fbfc96f99349ab9c72e 100644
--- a/ppapi/thunk/ppb_flash_thunk.cc
+++ b/ppapi/thunk/ppb_flash_thunk.cc
@@ -61,7 +61,7 @@ int32_t Navigate(PP_Resource request_id,
// To work around this, use the PP_Instance from the resource.
PP_Instance instance;
{
- thunk::EnterResource<thunk::PPB_URLRequestInfo_API> enter(request_id, true);
+ EnterResource<PPB_URLRequestInfo_API> enter(request_id, true);
if (enter.failed())
return PP_ERROR_BADRESOURCE;
instance = enter.resource()->pp_instance();
@@ -138,10 +138,10 @@ int32_t GetSettingInt(PP_Instance instance, PP_FlashSetting setting) {
}
PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) {
- EnterInstance enter(instance);
+ EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
if (enter.failed())
return PP_MakeUndefined();
- return enter.functions()->GetFlashAPI()->GetSetting(instance, setting);
+ return enter.functions()->GetSetting(instance, setting);
}
PP_Bool SetCrashData(PP_Instance instance,
@@ -156,7 +156,7 @@ PP_Bool SetCrashData(PP_Instance instance,
int32_t EnumerateVideoCaptureDevices(PP_Instance instance,
PP_Resource video_capture,
PP_ArrayOutput devices) {
- thunk::EnterResource<thunk::PPB_VideoCapture_API> enter(video_capture, true);
+ EnterResource<PPB_VideoCapture_API> enter(video_capture, true);
if (enter.failed())
return enter.retval();
return enter.object()->EnumerateDevicesSync(devices);
« no previous file with comments | « ppapi/thunk/ppb_flash_functions_api.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698