Gnash
0.8.10
|
00001 // 00002 // Copyright (C) 2010, 2011, 2012 Free Software Foundation, Inc 00003 // 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software 00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 // 00018 00019 #ifndef GNASH_PLUGIN_CALLBACKS_H 00020 #define GNASH_PLUGIN_CALLBACKS_H 00021 00022 #ifdef HAVE_CONFIG_H 00023 #include "gnashconfig.h" 00024 #endif 00025 00026 #include "npapi.h" 00027 #include "npruntime.h" 00028 00029 // Support the methods listed in 00030 // http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html 00031 00057 00058 namespace gnash { 00059 00079 extern bool GetVariableCallback (NPObject *npobj, NPIdentifier name, 00080 const NPVariant *args, uint32_t argCount, 00081 NPVariant *result); 00082 00103 extern bool SetVariableCallback (NPObject *npobj, NPIdentifier name, 00104 const NPVariant *args, uint32_t argCount, 00105 NPVariant *result); 00106 00124 extern bool GotoFrame (NPObject *npobj, NPIdentifier name, 00125 const NPVariant *args, uint32_t argCount, 00126 NPVariant *result); 00127 00143 extern bool IsPlaying (NPObject *npobj, NPIdentifier name, 00144 const NPVariant *args, uint32_t argCount, 00145 NPVariant *result); 00146 00165 extern bool LoadMovie (NPObject *npobj, NPIdentifier name, 00166 const NPVariant *args, uint32_t argCount, 00167 NPVariant *result); 00168 00190 extern bool Pan (NPObject *npobj, NPIdentifier name, 00191 const NPVariant *args, uint32_t argCount, 00192 NPVariant *result); 00193 00211 extern bool PercentLoaded (NPObject *npobj, NPIdentifier name, 00212 const NPVariant *args, uint32_t argCount, 00213 NPVariant *result); 00214 00222 extern bool Play (NPObject *npobj, NPIdentifier name, 00223 const NPVariant *args, uint32_t argCount, 00224 NPVariant *result); 00225 00233 extern bool Rewind (NPObject *npobj, NPIdentifier name, 00234 const NPVariant *args, uint32_t argCount, 00235 NPVariant *result); 00236 00249 extern bool SetZoomRect (NPObject *npobj, NPIdentifier name, 00250 const NPVariant *args, uint32_t argCount, 00251 NPVariant *result); 00252 00260 extern bool StopPlay (NPObject *npobj, NPIdentifier name, 00261 const NPVariant *args, uint32_t argCount, 00262 NPVariant *result); 00263 00273 extern bool Zoom (NPObject *npobj, NPIdentifier name, 00274 const NPVariant *args, uint32_t argCount, 00275 NPVariant *result); 00276 00286 extern bool TotalFrames (NPObject *npobj, NPIdentifier name, 00287 const NPVariant *args, uint32_t argCount, 00288 NPVariant *result); 00289 00290 extern bool remoteCallback (NPObject *npobj, NPIdentifier name, 00291 const NPVariant *args, uint32_t argCount, 00292 NPVariant *result); 00293 00294 #endif // GNASH_PLUGIN_CALLBACKS_H 00295 00296 } // end of gnash namespace 00297 00298 // local Variables: 00299 // mode: C++ 00300 // indent-tabs-mode: nil 00301 // End: