diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-25 19:26:40 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-25 19:26:40 +0000 |
commit | d1e33ca1b734b9a4a33ac702554e8be129a26f2a (patch) | |
tree | da7e529be1d7794f10b29e8c401a406b31073597 /ppapi/thunk/ppb_flash_clipboard_thunk.cc | |
parent | ab5918a6b6d3d19122e0b90fae1155938043fdf0 (diff) | |
download | chromium_src-d1e33ca1b734b9a4a33ac702554e8be129a26f2a.zip chromium_src-d1e33ca1b734b9a4a33ac702554e8be129a26f2a.tar.gz chromium_src-d1e33ca1b734b9a4a33ac702554e8be129a26f2a.tar.bz2 |
Move the FlashClipboard API into the Flash one.
This allows us to delete the separate proxy files for this.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10163012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_flash_clipboard_thunk.cc')
-rw-r--r-- | ppapi/thunk/ppb_flash_clipboard_thunk.cc | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/ppapi/thunk/ppb_flash_clipboard_thunk.cc b/ppapi/thunk/ppb_flash_clipboard_thunk.cc index efc7307..084b937 100644 --- a/ppapi/thunk/ppb_flash_clipboard_thunk.cc +++ b/ppapi/thunk/ppb_flash_clipboard_thunk.cc @@ -6,31 +6,31 @@ #include "ppapi/c/private/ppb_flash_clipboard.h" #include "ppapi/thunk/enter.h" #include "ppapi/thunk/thunk.h" -#include "ppapi/thunk/ppb_flash_clipboard_api.h" +#include "ppapi/thunk/ppb_flash_api.h" namespace ppapi { namespace thunk { namespace { -typedef EnterFunction<PPB_Flash_Clipboard_FunctionAPI> EnterFlashClipboard; - PP_Bool IsFormatAvailable(PP_Instance instance, PP_Flash_Clipboard_Type clipboard_type, PP_Flash_Clipboard_Format format) { - EnterFlashClipboard enter(instance, true); + EnterInstance enter(instance); if (enter.failed()) return PP_FALSE; - return enter.functions()->IsFormatAvailable(instance, clipboard_type, format); + return enter.functions()->GetFlashAPI()->IsClipboardFormatAvailable( + instance, clipboard_type, format); } PP_Var ReadData(PP_Instance instance, PP_Flash_Clipboard_Type clipboard_type, PP_Flash_Clipboard_Format format) { - EnterFlashClipboard enter(instance, true); + EnterInstance enter(instance); if (enter.failed()) return PP_MakeUndefined(); - return enter.functions()->ReadData(instance, clipboard_type, format); + return enter.functions()->GetFlashAPI()->ReadClipboardData( + instance, clipboard_type, format); } int32_t WriteData(PP_Instance instance, @@ -38,14 +38,11 @@ int32_t WriteData(PP_Instance instance, uint32_t data_item_count, const PP_Flash_Clipboard_Format formats[], const PP_Var data_items[]) { - EnterFlashClipboard enter(instance, true); + EnterInstance enter(instance); if (enter.failed()) return enter.retval(); - return enter.functions()->WriteData(instance, - clipboard_type, - data_item_count, - formats, - data_items); + return enter.functions()->GetFlashAPI()->WriteClipboardData( + instance, clipboard_type, data_item_count, formats, data_items); } PP_Var ReadPlainText(PP_Instance instance, |