Add patch to fix #35635, mmap problems with a hardened kernel.
[gnash.git] / libcore / namedStrings.cpp
blob3947edf87617078a246e3c7f238348c03e849345
1 //
2 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 // A file to contain all of the different strings for which we want compile time
20 // known string table keys.
22 #include "namedStrings.h"
23 #include "string_table.h"
24 #include "GnashAlgorithm.h"
26 namespace gnash {
27 namespace NSV { // Named String Values
29 // Load up our pre-known names
30 static const string_table::svt preload_names[] =
32 string_table::svt( "a", NSV::PROP_A ),
33 string_table::svt( "addListener", NSV::PROP_ADD_LISTENER ),
34 string_table::svt( "align", NSV::PROP_ALIGN ),
35 string_table::svt( "arguments", NSV::PROP_ARGUMENTS ),
36 string_table::svt( "ASnative", NSV::PROP_AS_NATIVE ),
37 string_table::svt( "ASSetPropFlags", NSV::PROP_AS_SET_PROP_FLAGS ),
38 string_table::svt( "_alpha", NSV::PROP_uALPHA ),
39 string_table::svt( "b", NSV::PROP_B ),
40 string_table::svt( "blockIndent", NSV::PROP_BLOCK_INDENT ),
41 string_table::svt( "bold", NSV::PROP_BOLD ),
42 string_table::svt( "broadcastMessage", NSV::PROP_BROADCAST_MESSAGE ),
43 string_table::svt( "bullet", NSV::PROP_BULLET ),
44 string_table::svt( "_bytesTotal", NSV::PROP_uBYTES_TOTAL ),
45 string_table::svt( "_bytesLoaded", NSV::PROP_uBYTES_LOADED ),
46 string_table::svt( "c", NSV::PROP_C ),
47 string_table::svt( "callee", NSV::PROP_CALLEE ),
48 string_table::svt( "caller", NSV::PROP_CALLER ),
49 string_table::svt( "color", NSV::PROP_COLOR ),
50 string_table::svt( "concat", NSV::PROP_CONCAT ),
51 string_table::svt( "constructor", NSV::PROP_CONSTRUCTOR ),
52 string_table::svt( "__constructor__", NSV::PROP_uuCONSTRUCTORuu ),
53 string_table::svt( "contentType", NSV::PROP_CONTENT_TYPE),
54 string_table::svt( "_currentframe", NSV::PROP_uCURRENTFRAME ),
55 string_table::svt( "_customHeaders", NSV::PROP_uCUSTOM_HEADERS ),
56 string_table::svt( "d", NSV::PROP_D ),
57 string_table::svt( "data", NSV::PROP_DATA ),
58 string_table::svt( "decode", NSV::PROP_DECODE ),
59 string_table::svt( "duration", NSV::PROP_DURATION ),
60 string_table::svt( "e", NSV::PROP_E ),
61 string_table::svt( "escape", NSV::PROP_ESCAPE ),
62 string_table::svt( "_droptarget", NSV::PROP_uDROPTARGET ),
63 string_table::svt( "enabled", NSV::PROP_ENABLED ),
64 string_table::svt( "useHandCursor", NSV::PROP_USEHANDCURSOR ),
65 string_table::svt( "focusEnabled", NSV::PROP_FOCUS_ENABLED ),
66 string_table::svt( "_focusrect", NSV::PROP_uFOCUSRECT ),
67 string_table::svt( "_framesloaded", NSV::PROP_uFRAMESLOADED ),
68 string_table::svt( "_height", NSV::PROP_uHEIGHT ),
69 string_table::svt( "g", NSV::PROP_G ),
70 string_table::svt( "h", NSV::PROP_H ),
71 string_table::svt( "height", NSV::PROP_HEIGHT ),
72 string_table::svt( "_highquality", NSV::PROP_uHIGHQUALITY ),
73 string_table::svt( "_quality", NSV::PROP_uQUALITY ),
74 string_table::svt( "htmlText", NSV::PROP_HTML_TEXT ),
75 string_table::svt( "indent", NSV::PROP_INDENT ),
76 string_table::svt( "italic", NSV::PROP_ITALIC ),
77 string_table::svt( "leading", NSV::PROP_LEADING ),
78 string_table::svt( "left_margin", NSV::PROP_LEFT_MARGIN ),
79 string_table::svt( "length", NSV::PROP_LENGTH ),
80 string_table::svt( "_listeners", NSV::PROP_uLISTENERS ),
81 string_table::svt( "loaded", NSV::PROP_LOADED ),
82 string_table::svt( "matrixType", NSV::PROP_MATRIX_TYPE),
83 string_table::svt( "meth", NSV::PROP_METH),
84 string_table::svt( "_name", NSV::PROP_uNAME ),
85 string_table::svt( "onLoad", NSV::PROP_ON_LOAD ),
86 string_table::svt( "onClose", NSV::PROP_ON_CLOSE ),
87 string_table::svt( "onLoadStart", NSV::PROP_ON_LOAD_START ),
88 string_table::svt( "onLoadError", NSV::PROP_ON_LOAD_ERROR ),
89 string_table::svt( "onLoadProgress", NSV::PROP_ON_LOAD_PROGRESS ),
90 string_table::svt( "onLoadInit", NSV::PROP_ON_LOAD_INIT ),
91 string_table::svt( "onSoundComplete", NSV::PROP_ON_SOUND_COMPLETE ),
92 string_table::svt( "onUnload", NSV::PROP_ON_UNLOAD ),
93 string_table::svt( "onEnterFrame", NSV::PROP_ON_ENTER_FRAME ),
94 string_table::svt( "onConstruct", NSV::PROP_ON_CONSTRUCT ),
95 string_table::svt( "onInitialize", NSV::PROP_ON_INITIALIZE ),
96 string_table::svt( "onData", NSV::PROP_ON_DATA ),
97 string_table::svt( "onResize", NSV::PROP_ON_RESIZE ),
98 string_table::svt( "onFullScreen", NSV::PROP_ON_FULLSCREEN ),
99 string_table::svt( "onPress", NSV::PROP_ON_PRESS ),
100 string_table::svt( "onRelease", NSV::PROP_ON_RELEASE ),
101 string_table::svt( "onReleaseOutside", NSV::PROP_ON_RELEASE_OUTSIDE ),
102 string_table::svt( "onRollOut", NSV::PROP_ON_ROLL_OUT ),
103 string_table::svt( "onRollOver", NSV::PROP_ON_ROLL_OVER ),
104 string_table::svt( "onDragOver", NSV::PROP_ON_DRAG_OVER ),
105 string_table::svt( "onDragOut", NSV::PROP_ON_DRAG_OUT ),
106 string_table::svt( "onKeyPress", NSV::PROP_ON_KEY_PRESS ),
107 string_table::svt( "onKeyDown", NSV::PROP_ON_KEY_DOWN ),
108 string_table::svt( "onKeyUp", NSV::PROP_ON_KEY_UP ),
109 string_table::svt( "onMouseDown", NSV::PROP_ON_MOUSE_DOWN ),
110 string_table::svt( "onMouseUp", NSV::PROP_ON_MOUSE_UP ),
111 string_table::svt( "onMouseMove", NSV::PROP_ON_MOUSE_MOVE ),
112 string_table::svt( "onSetFocus", NSV::PROP_ON_SET_FOCUS ),
113 string_table::svt( "onKillFocus", NSV::PROP_ON_KILL_FOCUS ),
114 string_table::svt( "onSelect", NSV::PROP_ON_SELECT ),
115 string_table::svt( "onStatus", NSV::PROP_ON_STATUS ),
116 string_table::svt( "onResult", NSV::PROP_ON_RESULT ),
117 string_table::svt( "onMetaData", NSV::PROP_ON_META_DATA ),
118 string_table::svt( "onConnect", NSV::PROP_ON_CONNECT ),
119 string_table::svt( "onXML", NSV::PROP_ON_XML ),
120 string_table::svt( "parseXML", NSV::PROP_PARSE_XML ),
121 string_table::svt( "onTimer", NSV::PROP_ON_TIMER ),
122 string_table::svt( "_parent", NSV::PROP_uPARENT ),
123 string_table::svt( "_root", NSV::PROP_uROOT ),
124 string_table::svt( "_global", NSV::PROP_uGLOBAL ),
125 string_table::svt( "__proto__", NSV::PROP_uuPROTOuu ),
126 string_table::svt( "position", NSV::PROP_POSITION ),
127 string_table::svt( "prototype", NSV::PROP_PROTOTYPE ),
128 string_table::svt( "push", NSV::PROP_PUSH ),
129 string_table::svt( "__resolve", NSV::PROP_uuRESOLVE ),
130 string_table::svt( "r", NSV::PROP_R ),
131 string_table::svt( "removeListener", NSV::PROP_REMOVE_LISTENER ),
132 string_table::svt( "rightMargin", NSV::PROP_RIGHT_MARGIN ),
133 string_table::svt( "_rotation", NSV::PROP_uROTATION ),
134 string_table::svt( "scaleMode", NSV::PROP_SCALE_MODE ),
135 string_table::svt( "size", NSV::PROP_SIZE ),
136 string_table::svt( "_soundbuftime", NSV::PROP_uSOUNDBUFTIME ),
137 string_table::svt( "splice", NSV::PROP_SPLICE ),
138 string_table::svt( "status", NSV::PROP_STATUS ),
139 string_table::svt( "super", NSV::PROP_SUPER ),
140 string_table::svt( "target", NSV::PROP_TARGET ),
141 string_table::svt( "_target", NSV::PROP_uTARGET ),
142 string_table::svt( "text", NSV::PROP_TEXT ),
143 string_table::svt( "textColor", NSV::PROP_TEXT_COLOR ),
144 string_table::svt( "textWidth", NSV::PROP_TEXT_WIDTH ),
145 string_table::svt( "textHeight", NSV::PROP_TEXT_HEIGHT ),
146 string_table::svt( "this", NSV::PROP_THIS ),
147 string_table::svt( "toString", NSV::PROP_TO_STRING ),
148 string_table::svt( "toLowerCase", NSV::PROP_TO_LOWER_CASE ),
149 string_table::svt( "_totalframes", NSV::PROP_uTOTALFRAMES ),
150 string_table::svt( "tx", NSV::PROP_TX ),
151 string_table::svt( "ty", NSV::PROP_TY ),
152 string_table::svt( "underline", NSV::PROP_UNDERLINE ),
153 string_table::svt( "_url", NSV::PROP_uURL ),
154 string_table::svt( "valueOf", NSV::PROP_VALUE_OF ),
155 string_table::svt( "_visible", NSV::PROP_uVISIBLE ),
156 string_table::svt( "w", NSV::PROP_W ),
157 string_table::svt( "_width", NSV::PROP_uWIDTH ),
158 string_table::svt( "width", NSV::PROP_WIDTH ),
159 string_table::svt( "x", NSV::PROP_X ),
160 string_table::svt( "_x", NSV::PROP_uX ),
161 string_table::svt( "_xmouse", NSV::PROP_uXMOUSE ),
162 string_table::svt( "_xscale", NSV::PROP_uXSCALE ),
163 string_table::svt( "y", NSV::PROP_Y ),
164 string_table::svt( "_y", NSV::PROP_uY ),
165 string_table::svt( "_ymouse", NSV::PROP_uYMOUSE ),
166 string_table::svt( "_yscale", NSV::PROP_uYSCALE ),
167 string_table::svt( "System", NSV::CLASS_SYSTEM ),
168 string_table::svt( "AntiAliasType", NSV::CLASS_ANTIALIASTYPE ),
169 string_table::svt( "CSMTextSettings", NSV::CLASS_CSMTEXTSETTINGS ),
170 string_table::svt( "Font", NSV::CLASS_FONT),
171 string_table::svt( "FontStyle", NSV::CLASS_FONTSTYLE),
172 string_table::svt( "GridFitType", NSV::CLASS_GRIDFITTYPE),
173 string_table::svt( "StaticText", NSV::CLASS_STATICTEXT),
174 string_table::svt( "StyleSheet", NSV::CLASS_STYLESHEET),
175 string_table::svt( "TextColorType", NSV::CLASS_TEXTCOLORTYPE),
176 string_table::svt( "TextDisplayMode", NSV::CLASS_TEXTDISPLAYMODE),
177 string_table::svt( "TextFieldType", NSV::CLASS_TEXTFIELDTYPE),
178 string_table::svt( "TextFormatAlign", NSV::CLASS_TEXTFORMATALIGN),
179 string_table::svt( "TextLineMetrics", NSV::CLASS_TEXTLINEMETRICS),
180 string_table::svt( "TextRenderer", NSV::CLASS_TEXTRENDERER),
181 string_table::svt( "Stage", NSV::CLASS_STAGE ),
182 string_table::svt( "MovieClip", NSV::CLASS_MOVIE_CLIP ),
183 string_table::svt( "TextField", NSV::CLASS_TEXT_FIELD ),
184 string_table::svt( "Button", NSV::CLASS_BUTTON ),
185 string_table::svt( "Math", NSV::CLASS_MATH ),
186 string_table::svt( "Boolean", NSV::CLASS_BOOLEAN ),
187 string_table::svt( "Bitmap", NSV::CLASS_BITMAP ),
188 string_table::svt( "Color", NSV::CLASS_COLOR ),
189 string_table::svt( "Selection", NSV::CLASS_SELECTION ),
190 string_table::svt( "Sound", NSV::CLASS_SOUND ),
191 string_table::svt( "SimpleButton", NSV::CLASS_SIMPLE_BUTTON ),
192 string_table::svt( "XMLSocket", NSV::CLASS_XMLSOCKET ),
193 string_table::svt( "Shape", NSV::CLASS_SHAPE ),
194 string_table::svt( "Date", NSV::CLASS_DATE ),
195 string_table::svt( "XML", NSV::CLASS_XML ),
196 string_table::svt( "XMLDocument", NSV::CLASS_XML_DOCUMENT ),
197 string_table::svt( "XMLNode", NSV::CLASS_XMLNODE ),
198 string_table::svt( "Mouse", NSV::CLASS_MOUSE ),
199 string_table::svt( "Object", NSV::CLASS_OBJECT ),
200 string_table::svt( "String", NSV::CLASS_STRING ),
201 string_table::svt( "Number", NSV::CLASS_NUMBER ),
202 string_table::svt( "Accessibility", NSV::CLASS_ACCESSIBILITY ),
203 string_table::svt( "Array", NSV::CLASS_ARRAY ),
204 string_table::svt( "Key", NSV::CLASS_KEY ),
205 string_table::svt( "Keyboard", NSV::CLASS_KEYBOARD ),
206 string_table::svt( "AsBroadcaster", NSV::CLASS_AS_BROADCASTER ),
207 string_table::svt( "Function", NSV::CLASS_FUNCTION ),
208 string_table::svt( "TextSnapshot", NSV::CLASS_TEXT_SNAPSHOT ),
209 string_table::svt( "TextFormat", NSV::CLASS_TEXT_FORMAT ),
210 string_table::svt( "Video", NSV::CLASS_VIDEO ),
211 string_table::svt( "Camera", NSV::CLASS_CAMERA ),
212 string_table::svt( "Microphone", NSV::CLASS_MICROPHONE ),
213 string_table::svt( "SharedObject", NSV::CLASS_SHARED_OBJECT ),
214 string_table::svt( "LoadVars", NSV::CLASS_LOAD_VARS ),
215 string_table::svt( "LocalConnection", NSV::CLASS_LOCALCONNECTION ),
216 string_table::svt( "QName", NSV::CLASS_QNAME ),
217 string_table::svt( "Namespace", NSV::CLASS_NAMESPACE ),
218 string_table::svt( "NetConnection", NSV::CLASS_NET_CONNECTION ),
219 string_table::svt( "NetStream", NSV::CLASS_NET_STREAM ),
220 string_table::svt( "ContextMenu", NSV::CLASS_CONTEXTMENU ),
221 string_table::svt( "ContextMenuItem", NSV::CLASS_CONTEXTMENUITEM ),
222 string_table::svt( "MovieClipLoader", NSV::CLASS_MOVIE_CLIP_LOADER ),
223 string_table::svt( "Error", NSV::CLASS_ERROR ),
224 string_table::svt( "Event", NSV::CLASS_EVENT),
225 string_table::svt( "EventDispatcher", NSV::CLASS_EVENTDISPATCHER),
226 string_table::svt( "DisplayObject", NSV::CLASS_DISPLAYOBJECT),
227 string_table::svt( "InteractiveObject", NSV::CLASS_INTERACTIVEOBJECT ),
228 string_table::svt( "DisplayObjectContainer",
229 NSV::CLASS_DISPLAYOBJECTCONTAINER ),
230 string_table::svt( "Sprite", NSV::CLASS_SPRITE ),
231 string_table::svt( "int", NSV::CLASS_INT ),
232 string_table::svt( "TextFieldAutoSize", NSV::CLASS_TEXTFIELDAUTOSIZE),
233 string_table::svt( "onSync", NSV::PROP_ON_SYNC ),
234 string_table::svt( "flash.display", NSV::NS_FLASH_DISPLAY ),
235 string_table::svt( "flash.text", NSV::NS_FLASH_TEXT ),
236 string_table::svt( "flash.geom", NSV::NS_FLASH_GEOM ),
237 string_table::svt( "flash.net", NSV::NS_FLASH_NET ),
238 string_table::svt( "flash.system", NSV::NS_FLASH_SYSTEM ),
239 string_table::svt( "flash.utils", NSV::NS_FLASH_UTILS ),
240 string_table::svt( "flash.events", NSV::NS_FLASH_EVENTS ),
241 string_table::svt( "flash.errors", NSV::NS_FLASH_ERRORS ),
242 string_table::svt( "flash.accessibility", NSV::NS_FLASH_ACCESSIBILITY ),
243 string_table::svt( "flash.media", NSV::NS_FLASH_MEDIA ),
244 string_table::svt( "flash.xml", NSV::NS_FLASH_XML ),
245 string_table::svt( "flash.ui", NSV::NS_FLASH_UI ),
246 string_table::svt( "adobe.utils", NSV::NS_ADOBE_UTILS ),
247 string_table::svt( "", NSV::INTERNAL_TYPE ),
248 string_table::svt( "", NSV::INTERNAL_STACK_PARENT ),
249 string_table::svt( "", NSV::INTERNAL_INTERFACES ),
250 string_table::svt( "", NSV::INTERNAL_HIGHEST_LOWERCASE )
253 void
254 loadStrings(string_table& table)
256 table.insert_group(preload_names, arraySize(preload_names));
257 table.setHighestKnownLowercase(NSV::INTERNAL_HIGHEST_LOWERCASE);
260 } // namespace NSV
261 } // namespace gnash