Gnash  0.8.11dev
ExternalInterface_as.h
Go to the documentation of this file.
1 // ExternalInterface_as.h: ActionScript "ExternalInterface" class, for Gnash.
2 //
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 //
20 
21 #ifndef GNASH_ASOBJ_EXTERNALINTERFACE_H
22 #define GNASH_ASOBJ_EXTERNALINTERFACE_H
23 
24 namespace gnash {
25  class as_object;
26  struct ObjectURI;
27 }
28 
29 namespace gnash {
30 
33  const gnash::ObjectURI& uri);
34 
35 void registerExternalInterfaceNative(as_object& global);
36 
37 } // namespace gnash
38 
39 #endif
40 
41 // local Variables:
42 // mode: C++
43 // indent-tabs-mode: nil
44 // End:
gnash::toNumber
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
movie_root.h
gnash::arrayKey
ObjectURI arrayKey(VM &vm, size_t i)
Convert an integral value into an ObjectURI.
Definition: Array_as.cpp:995
name
std::string name
Definition: LocalConnection_as.cpp:149
gnash::toBool
bool toBool(const as_value &v, const VM &vm)
Convert an as_value to boolean type.
Definition: VM.cpp:445
gnash::NSV::PROP_TO_STRING
@ PROP_TO_STRING
Definition: namedStrings.h:191
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
as_object.h
ObjectURI.h
gnash::getOwnProperty
as_value getOwnProperty(as_object &o, const ObjectURI &uri)
Get an own member of an object.
Definition: as_object.h:777
gnash::toObject
as_object * toObject(const as_value &v, VM &vm)
Convert an as_value to an object.
Definition: VM.cpp:457
gnash::registerExternalInterfaceNative
void registerExternalInterfaceNative(as_object &global)
Definition: ExternalInterface_as.cpp:150
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
gnash::key::i
@ i
Definition: GnashKey.h:155
LOG_ONCE
#define LOG_ONCE(x)
Definition: log.h:49
rc.h
gnash::NSV::PROP_LENGTH
@ PROP_LENGTH
Definition: namedStrings.h:83
_
#define _(String)
Definition: log.h:44
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
PropertyList.h
gnash::arrayLength
size_t arrayLength(as_object &array)
Get the length of an object as though it were an array.
Definition: Array_as.cpp:942
gnash::key::m
@ m
Definition: GnashKey.h:159
gnash::movie_root::SCRIPT_ACCESS_NEVER
@ SCRIPT_ACCESS_NEVER
Definition: movie_root.h:481
as_value.h
NativeFunction.h
gnash::key::n
@ n
Definition: GnashKey.h:160
Global_as.h
__FUNCTION__
#define __FUNCTION__
Definition: log.h:437
gnash::getGlobal
Global_as & getGlobal(const as_environment &env)
Definition: as_environment.cpp:651
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::getMember
as_value getMember(as_object &o, const ObjectURI &uri)
Get a member of an object using AS lookup rules.
Definition: as_object.h:756
gnash::escapeXML
void escapeXML(std::string &text)
Escape using XML entities.
Definition: XML_as.cpp:104
gnash::as_object::init_destructive_property
bool init_destructive_property(const ObjectURI &uri, as_function &getter, int flags=PropFlags::dontEnum)
Initialize a destructive getter property.
Definition: as_object.cpp:720
gnash::createObject
as_object * createObject(const Global_as &gl)
Definition: Global_as.cpp:303
gnash::movie_root::SCRIPT_ACCESS_SAME_DOMAIN
@ SCRIPT_ACCESS_SAME_DOMAIN
Definition: movie_root.h:482
gnash::callMethod
as_value callMethod(fn_call::Args &args, as_object *obj, const ObjectURI &uri)
Call a member function of this object in an AS-compatible way.
Definition: Global_as.h:219
gnash::key::r
@ r
Definition: GnashKey.h:164
GnashSystemNetHeaders.h
StringPredicates.h
ExternalInterface.h
gnash::emptyFunction
as_value emptyFunction(const fn_call &)
Definition: Global_as.h:256
gnash::as_object::get_member
virtual bool get_member(const ObjectURI &uri, as_value *val)
Get a property by name if it exists.
Definition: as_object.cpp:378
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
gnash::PropFlags::onlySWF8Up
@ onlySWF8Up
Only visible by VM initialized for version 8 or higher.
Definition: PropFlags.h:54
gnash::externalinterface_class_init
void externalinterface_class_init(as_object &where, const ObjectURI &uri)
Initialize the global ExternalInterface class.
Definition: ExternalInterface_as.cpp:167
VM.h
gnash::NSV::PROP_AS_SET_PROP_FLAGS
@ PROP_AS_SET_PROP_FLAGS
Definition: namedStrings.h:137
XML_as.h
log.h
gnash::getRoot
movie_root & getRoot(const as_environment &env)
Definition: as_environment.cpp:645
fn_call.h
gnash::movie_root::SCRIPT_ACCESS_ALWAYS
@ SCRIPT_ACCESS_ALWAYS
Definition: movie_root.h:483
gnash::getObject
as_object * getObject(const DisplayObject *d)
Return the as_object associated with a DisplayObject if it exists.
Definition: DisplayObject.h:1160
namedStrings.h
gnash::getSWFVersion
int getSWFVersion(const as_environment &env)
Definition: as_environment.cpp:657
RunResources.h
test.uri
uri
Definition: test.py:12
gnash::getStringTable
string_table & getStringTable(const as_environment &env)
Definition: as_environment.cpp:639
gnash::log_security
void log_security(StringType msg, Args... args)
Definition: log.h:319
ExternalInterface_as.h
gnash::getURI
ObjectURI getURI(const VM &vm, const std::string &str, bool lowerCaseHint=false)
Definition: VM.h:290
gnash::ExternalInterface::parseXML
static as_value parseXML(const std::string &xml)
Definition: ExternalInterface.cpp:226
Array_as.h
gnash::hasOwnProperty
bool hasOwnProperty(as_object &o, const ObjectURI &uri)
Return true if this object has the named property.
Definition: as_object.h:854
StreamProvider.h
gnash::key::o
@ o
Definition: GnashKey.h:161
gnash::foreachArray
void foreachArray(as_object &array, T &pred)
Definition: Array_as.h:78
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::key::u
@ u
Definition: GnashKey.h:167
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45
gnash::unescapeXML
void unescapeXML(std::string &text)
Definition: XML_as.cpp:115
GnashException.h
x
std::int32_t x
Definition: BitmapData_as.cpp:434
gnash::findObject
as_object * findObject(const as_environment &ctx, const std::string &path, const as_environment::ScopeStack *scope)
Find the object referenced by the given path.
Definition: as_environment.cpp:116
test.v
v
Definition: test.py:11
gnash::key::e
@ e
Definition: GnashKey.h:151
gnash::equals
bool equals(const as_value &a, const as_value &b, const VM &vm)
Check if two values are equal.
Definition: VM.cpp:439
MAXHOSTNAMELEN
#define MAXHOSTNAMELEN
Definition: ExternalInterface_as.cpp:52
gnash::newAdd
void newAdd(as_value &op1, const as_value &op2, const VM &vm)
Carry out ActionNewAdd.
Definition: VM.cpp:356