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

Unified Diff: ppapi/thunk/ppb_flash_thunk.cc

Issue 11576016: Revert 172806 (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/ppb_flash_impl.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
===================================================================
--- ppapi/thunk/ppb_flash_thunk.cc (revision 172925)
+++ ppapi/thunk/ppb_flash_thunk.cc (working copy)
@@ -22,10 +22,10 @@
namespace {
void SetInstanceAlwaysOnTop(PP_Instance instance, PP_Bool on_top) {
- EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
+ EnterInstance enter(instance);
if (enter.failed())
return;
- enter.functions()->SetInstanceAlwaysOnTop(instance, on_top);
+ enter.functions()->GetFlashAPI()->SetInstanceAlwaysOnTop(instance, on_top);
}
PP_Bool DrawGlyphs(PP_Instance instance,
@@ -39,10 +39,10 @@
uint32_t glyph_count,
const uint16_t glyph_indices[],
const PP_Point glyph_advances[]) {
- EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_FALSE;
- return enter.functions()->DrawGlyphs(
+ return enter.functions()->GetFlashAPI()->DrawGlyphs(
instance, pp_image_data, font_desc, color, position, clip, transformation,
allow_subpixel_aa, glyph_count, glyph_indices, glyph_advances);
}
@@ -67,11 +67,11 @@
instance = enter.resource()->pp_instance();
}
- EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_ERROR_BADARGUMENT;
- return enter.functions()->Navigate(instance, request_id, target,
- from_user_action);
+ return enter.functions()->GetFlashAPI()->Navigate(instance, request_id,
+ target, from_user_action);
}
void RunMessageLoop(PP_Instance instance) {
@@ -107,10 +107,10 @@
}
PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) {
- EnterInstanceAPI<PPB_Flash_Functions_API> enter(instance);
+ EnterInstance enter(instance);
if (enter.failed())
return PP_FALSE;
- return enter.functions()->IsRectTopmost(instance, rect);
+ return enter.functions()->GetFlashAPI()->IsRectTopmost(instance, rect);
}
int32_t InvokePrinting(PP_Instance instance) {
« no previous file with comments | « ppapi/thunk/ppb_flash_functions_api.h ('k') | webkit/plugins/ppapi/ppb_flash_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698