Displaying 14 results from an estimated 14 matches for "_listeners".
Did you mean:
listeners
2007 Jul 27
0
11 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie_as.c test/trace
...else {
if (format != stream->format) {
if (stream->decoder)
diff-tree adcd9b97486a5983702b8938a0b961ac9146b2f4 (from 00f6b6ce1b01dd2f2eb2a0c1532c2b8f83741a36)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jul 27 13:11:06 2007 +0200
add test for when broadcaster._listeners is not an array
diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index 2fefd62..7e5e2c4 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -77,6 +77,15 @@ EXTRA_DIST = \
asbroadcaster-broadcastMessage-retval-7.swf.trace \
asbroadcaster-broadcastMessage-retval-8.swf...
2010 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
...HostAgent* hostAgent)
void
Host::update()
{
- _processors.update();
-
for(vector<NetworkDeviceAgent>::iterator iter = _networkdevices.begin();
iter != _networkdevices.end();
iter++)
{
iter->update();
}
+
+ for(set<HostListener*>::iterator iter = _listeners.begin();
+ iter != _listeners.end();
+ iter++)
+ {
+ (*iter)->updated();
+ }
}
void
@@ -121,12 +126,6 @@ Host::removeHostListener(HostListener* listener)
_listeners.erase(listener);
}
-Processors&
-Host::getProcessors()
-{
- return _processors;
-}
-
string
H...
2010 May 19
2
Squashed commits...
Refactoring the previous patch ended up creating two deltas. This
patch pushes them both together into a single commit.
2007 Nov 15
0
4 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c test/trace
...race ("Child:");
- func ();
+ child ();
}
watcher.valueOf = watcher.toString = function () { return "watcher"; };
-o.watched = true;
-o.watch ("watched", watcher);
-o.watched = false;
-
-
-var emitter = new Object ();
-AsBroadcaster.initialize (emitter);
-emitter._listeners.push (new Object ());
-emitter._listeners[0].broadcast = function () {
+function timeout () {
trace ("");
- trace ("Broadcast:");
+ trace ("Timeout:");
trace ("arguments: " + arguments);
trace ("caller: " + arguments.caller);
trace (&q...
2010 May 25
3
Supercedes previous patch...
The previous patch, for whatever reason, fails to apply on top of tip.
This patch is reimplemented and, hopefully, fixed.
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...swf differ
diff --git a/test/trace/mouse-properties-8.swf.trace b/test/trace/mouse-properties-8.swf.trace
new file mode 100644
index 0000000..544a71b
--- /dev/null
+++ b/test/trace/mouse-properties-8.swf.trace
@@ -0,0 +1,18 @@
+_global.Mouse = object
+ __proto__ (hpc) = _global.Object.prototype
+ _listeners (hpc) = object
+ __proto__ (hp) = _global.Array.prototype
+ constructor (hp) = _global.Array
+ length (hp) = number : 0
+ addListener (hpc) = _global.AsBroadcaster.addListener
+ broadcastMessage (hpc) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _gl...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...2007 +0200
call AsSetPropFlags on AsBroadcaster
diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as
index 0741314..b153c7a 100644
--- a/libswfdec/swfdec_initialize.as
+++ b/libswfdec/swfdec_initialize.as
@@ -49,9 +49,10 @@ AsBroadcaster.initialize = function (o)
o._listeners = new Array ();
ASSetPropFlags(o, "broadcastMessage,addListener,removeListener,_listeners", 131);
};
-ASSetPropFlags(o, null, 131);
+ASSetPropFlags(AsBroadcaster, null, 131);
/*** MOUSE ***/
+
Mouse = new Object ();
Mouse.show = ASnative (5, 0);
Mouse.hide = ASnative (5, 1);
dif...
2007 Jul 27
0
libswfdec/swfdec_asbroadcaster.c
...c/swfdec_asbroadcaster.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
New commits:
diff-tree a3ece6519ae6a1c481845d7a6a383b87aa0cc30d (from b3ab4943fa2579832e3cf9e346caab16feab4b46)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jul 27 19:37:28 2007 +0200
so the _listeners don't have to be an array - we just need a length property
diff --git a/libswfdec/swfdec_asbroadcaster.c b/libswfdec/swfdec_asbroadcaster.c
index 1e69533..396ac81 100644
--- a/libswfdec/swfdec_asbroadcaster.c
+++ b/libswfdec/swfdec_asbroadcaster.c
@@ -21,7 +21,6 @@
#include "config.h&quo...
2007 Aug 03
0
Changes to 'refs/tags/0.5.1'
...s before unlocking
implement MovieClip.getBounds()
add a test for ASnative
add a test for overriding AsBroadcaster methods
rewrite broadcastMessage so it produces the correct return value
add a test for return values of AsBroadcaster
add test for when broadcaster._listeners is not an array
only goto on the video if there is a video
so the _listeners don't have to be an array - we just need a length property
use the right size when computing offsets
fix global <=> local conversions to work with Stage changes
when calling super()...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...0
--- /dev/null
+++ b/test/trace/moviecliploader-properties-5.swf.trace
@@ -0,0 +1,33 @@
+_global.MovieClipLoader = function
+ __proto__ (hpn) = _global.Object.__proto__
+ constructor (hp) = _global.Object.constructor
+ prototype (hp) = object
+ __proto__ (hpn) = _global.Object.prototype
+ _listeners (hpn) = object
+ __proto__ (hp) = _global.Array.prototype
+ constructor (hp) = _global.Array
+ length (hp) = number : 0
+ addListener (hpn) = _global.AsBroadcaster.addListener
+ broadcastMessage (hpn) = function
+ __proto__ (hpn) = _global.Object.__proto__
+ construct...
2007 Nov 08
0
8 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_player.c test/trace
...57df74e
--- /dev/null
+++ b/test/trace/moviecliploader-constructor.as
@@ -0,0 +1,9 @@
+// makeswf -v 7 -s 200x150 -r 1 -o moviecliploader-constructor.swf moviecliploader-constructor.as
+
+trace ("Call MovieClipLoader on a normal object");
+
+o = {};
+trace (MovieClipLoader (o));
+trace (o._listeners);
+
+loadMovie ("fscommand:QUIT", "");
commit 62df0b4c39aa14e0182350814f0f85f3fbf0307f
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Nov 8 19:40:34 2007 +0100
Make max-runtime default to 10 seconds, but override it in swfdec_player_new()
diff --git a/libswfde...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...es.as
Update comment that was wrong in global-variable-properties.as
Forgot to recompile number-properties-8.swf
Fix v5 String split returning one too few elements if last char was the delim
Expand string-split test to catch the bug I fixed in my last commit
Create the _listeners Array in AsBroadcaster.initialize with [] not new Array ()
Expand asbroadcaster-properties test to check an initialized Object
Create Mouse and Stage with { } not with new Object () to get right properties
Set Object.registerClass and Object's propflags in .as code
Add t...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
.../dev/null
+++ b/test/trace/file-reference-list-properties-6.swf.trace
@@ -0,0 +1,31 @@
+_global.flash.net.FileReferenceList = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor (hp) = _global.Function
+ prototype (hp) = object
+ __proto__ (hp) = _global.Object.prototype
+ _listeners (hp) = object
+ __proto__ (hp) = _global.Array.prototype
+ constructor (hp) = _global.Array
+ length (hp) = number : 0
+ addListener (hp) = _global.AsBroadcaster.addListener
+ broadcastMessage (hp) = function
+ __proto__ (hp) = _global.Function.prototype
+ constructor...