[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11319: A few more SWF Tag loader st
From: |
Bob Naugle |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11319: A few more SWF Tag loader stubs. |
Date: |
Mon, 27 Jul 2009 14:30:40 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11319
committer: Bob Naugle <address@hidden>
branch nick: trunk
timestamp: Mon 2009-07-27 14:30:40 -0600
message:
A few more SWF Tag loader stubs.
added:
libcore/swf/DefineScalingGridTag.cpp
libcore/swf/DefineScalingGridTag.h
libcore/swf/SetTabIndexTag.cpp
libcore/swf/SetTabIndexTag.h
modified:
libcore/swf/DefaultTagLoaders.cpp
=== modified file 'libcore/swf/DefaultTagLoaders.cpp'
--- a/libcore/swf/DefaultTagLoaders.cpp 2009-06-15 19:40:46 +0000
+++ b/libcore/swf/DefaultTagLoaders.cpp 2009-07-27 20:30:40 +0000
@@ -31,6 +31,7 @@
#include "CSMTextSettingsTag.h"
#include "DefineFontTag.h"
#include "DefineButtonTag.h"
+#include "DefineScalingGridTag.h"
#include "DefineTextTag.h"
#include "PlaceObject2Tag.h"
#include "RemoveObjectTag.h"
@@ -38,6 +39,7 @@
#include "DoInitActionTag.h"
#include "DefineEditTextTag.h"
#include "SetBackgroundColorTag.h"
+#include "SetTabIndexTag.h"
#include "StartSoundTag.h"
#include "StreamSoundBlockTag.h"
#include "DefineButtonSoundTag.h"
@@ -180,7 +182,7 @@
(SWF::SCRIPTLIMITS, ScriptLimitsTag::loader) //65
// TODO: Fix this, but probably not critical.
- (SWF::SETTABINDEX, fixme_loader) //66
+ (SWF::SETTABINDEX, SetTabIndexTag::loader) //66
// TODO: Alexis reference says these are 83, 84. The 67, 68 comes from
// Tamarin. Figure out which one is correct (possibly both are).
@@ -203,7 +205,7 @@
// 77
(SWF::METADATA, metadata_loader)
// 78
- (SWF::DEFINESCALINGGRID, fixme_loader)
+ (SWF::DEFINESCALINGGRID, DefineScalingGridTag::loader)
// 83
(SWF::DEFINESHAPE4, DefineShapeTag::loader)
// 84
=== added file 'libcore/swf/DefineScalingGridTag.cpp'
--- a/libcore/swf/DefineScalingGridTag.cpp 1970-01-01 00:00:00 +0000
+++ b/libcore/swf/DefineScalingGridTag.cpp 2009-07-27 20:30:40 +0000
@@ -0,0 +1,56 @@
+// DefineScalingGridTag.cpp: Define scale factors for a window, a button, or
other similar objects.
+//
+// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+#include "DefineScalingGridTag.h"
+#include "SWFStream.h"
+#include "movie_definition.h"
+#include "MovieClip.h"
+#include "GnashNumeric.h"
+#include "RunResources.h"
+
+namespace gnash {
+namespace SWF {
+
+void
+DefineScalingGridTag::loader(SWFStream& in, TagType tag, movie_definition& md,
+ const RunResources& r)
+{
+ in.ensureBytes(2);
+ boost::uint16_t id = in.read_u16();
+
+ IF_VERBOSE_PARSE(
+ log_parse("DefineScalingGridTag: id = %d", id);
+ );
+
+ rect inner;
+ inner.read(in);
+
+ log_unimpl("DefineScalingGridTag");
+
+}
+
+} // namespace SWF
+} // namespace gnash
+
+// Local Variables:
+// mode: C++
+// c-basic-offset: 8
+// tab-width: 8
+// indent-tabs-mode: t
+// End:
=== added file 'libcore/swf/DefineScalingGridTag.h'
--- a/libcore/swf/DefineScalingGridTag.h 1970-01-01 00:00:00 +0000
+++ b/libcore/swf/DefineScalingGridTag.h 2009-07-27 20:30:40 +0000
@@ -0,0 +1,59 @@
+// DefineScalingGridTag.h: Define scale factors for a window, a button, or
other similar objects.
+//
+// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+// Based on the public domain work of Mike Shaver <address@hidden> 2003,
+// Vitalij Alexeev <address@hidden> 2004.
+
+#include "smart_ptr.h" // GNASH_USE_GC
+#include "SWF.h"
+#include "ShapeRecord.h"
+#include "DefinitionTag.h"
+
+// Forward declarations.
+namespace gnash {
+ class movie_definition;
+ class SWFStream;
+ class RunResources;
+ class Renderer;
+}
+
+namespace gnash {
+namespace SWF {
+
+/// DefineScalingGrid tag
+//
+class DefineScalingGridTag
+{
+public:
+
+ static void loader(SWFStream& in, TagType tag, movie_definition& m,
+ const RunResources& r);
+
+private:
+
+};
+
+} // namespace SWF
+} // namespace gnash
+
+// Local Variables:
+// mode: C++
+// c-basic-offset: 8
+// tab-width: 8
+// indent-tabs-mode: t
+// End:
=== added file 'libcore/swf/SetTabIndexTag.cpp'
--- a/libcore/swf/SetTabIndexTag.cpp 1970-01-01 00:00:00 +0000
+++ b/libcore/swf/SetTabIndexTag.cpp 2009-07-27 20:30:40 +0000
@@ -0,0 +1,56 @@
+// SetTabIndexTag.cpp: This tag defines the tab index of any text object
(static and dynamic text objects.)
+//
+// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+#include "SetTabIndexTag.h"
+#include "SWFStream.h"
+#include "movie_definition.h"
+#include "MovieClip.h"
+#include "GnashNumeric.h"
+#include "RunResources.h"
+
+namespace gnash {
+namespace SWF {
+
+void
+SetTabIndexTag::loader(SWFStream& in, TagType tag, movie_definition& md,
+ const RunResources& r)
+{
+ in.ensureBytes(2);
+ boost::uint16_t depth = in.read_u16();
+
+ IF_VERBOSE_PARSE(
+ log_parse("SetTabIndexTag: depth = %d", depth);
+ );
+
+ in.ensureBytes(2);
+ boost::uint16_t tab_index = in.read_u16();
+
+ log_unimpl("SetTabIndexTag");
+
+}
+
+} // namespace SWF
+} // namespace gnash
+
+// Local Variables:
+// mode: C++
+// c-basic-offset: 8
+// tab-width: 8
+// indent-tabs-mode: t
+// End:
=== added file 'libcore/swf/SetTabIndexTag.h'
--- a/libcore/swf/SetTabIndexTag.h 1970-01-01 00:00:00 +0000
+++ b/libcore/swf/SetTabIndexTag.h 2009-07-27 20:30:40 +0000
@@ -0,0 +1,56 @@
+// SetTabIndexTag.h: This tag defines the tab index of any text object (static
and dynamic text objects.)
+//
+// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+#include "smart_ptr.h" // GNASH_USE_GC
+#include "SWF.h"
+#include "ShapeRecord.h"
+#include "DefinitionTag.h"
+
+// Forward declarations.
+namespace gnash {
+ class movie_definition;
+ class SWFStream;
+ class RunResources;
+ class Renderer;
+}
+
+namespace gnash {
+namespace SWF {
+
+/// SetTabIndex tag
+//
+class SetTabIndexTag
+{
+public:
+
+ static void loader(SWFStream& in, TagType tag, movie_definition& m,
+ const RunResources& r);
+
+private:
+
+};
+
+} // namespace SWF
+} // namespace gnash
+
+// Local Variables:
+// mode: C++
+// c-basic-offset: 8
+// tab-width: 8
+// indent-tabs-mode: t
+// End:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11319: A few more SWF Tag loader stubs.,
Bob Naugle <=