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

Unified Diff: ppapi/thunk/ppb_flash_thunk.cc

Issue 11415140: Refactor 3 PPB_Flash functions to the new 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 15b132a333a4aaa86bd5a46d2d90211dbf1090af..19e07839111a3cc9a319370b921801d16ac14e42 100644
--- a/ppapi/thunk/ppb_flash_thunk.cc
+++ b/ppapi/thunk/ppb_flash_thunk.cc
@@ -48,10 +48,10 @@ PP_Bool DrawGlyphs(PP_Instance instance,
}
PP_Var GetProxyForURL(PP_Instance instance, const char* url) {
- EnterInstance enter(instance);
+ EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
if (enter.failed())
return PP_MakeUndefined();
- return enter.functions()->GetFlashAPI()->GetProxyForURL(instance, url);
+ return enter.functions()->GetProxyForURL(instance, url);
}
int32_t Navigate(PP_Resource request_id,
@@ -119,10 +119,10 @@ int32_t InvokePrinting(PP_Instance instance) {
}
void UpdateActivity(PP_Instance instance) {
- EnterInstance enter(instance);
+ EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
if (enter.failed())
return;
- enter.functions()->GetFlashAPI()->UpdateActivity(instance);
+ enter.functions()->UpdateActivity(instance);
}
PP_Var GetDeviceID(PP_Instance instance) {
@@ -147,10 +147,10 @@ PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) {
PP_Bool SetCrashData(PP_Instance instance,
PP_FlashCrashKey key,
PP_Var value) {
- EnterInstance enter(instance);
+ EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
if (enter.failed())
return PP_FALSE;
- return enter.functions()->GetFlashAPI()->SetCrashData(instance, key, value);
+ return enter.functions()->SetCrashData(instance, key, value);
}
int32_t EnumerateVideoCaptureDevices(PP_Instance instance,
« 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