Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: webkit/port/bindings/v8/v8_index.h

Issue 125035: A first pass at the DOM Storage V8 bindings. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/port/bindings/v8/v8_custom.h ('k') | webkit/port/bindings/v8/v8_index.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INDEX_H__ 5 #ifndef V8_INDEX_H__
6 #define V8_INDEX_H__ 6 #define V8_INDEX_H__
7 7
8 #include <v8.h> 8 #include <v8.h>
9 #include "PlatformString.h" // for WebCore::String 9 #include "PlatformString.h" // for WebCore::String
10 10
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 #define DOM_OBJECT_DATABASE_TYPES(V) \ 342 #define DOM_OBJECT_DATABASE_TYPES(V) \
343 V(DATABASE, Database) \ 343 V(DATABASE, Database) \
344 V(SQLERROR, SQLError) \ 344 V(SQLERROR, SQLError) \
345 V(SQLRESULTSET, SQLResultSet) \ 345 V(SQLRESULTSET, SQLResultSet) \
346 V(SQLRESULTSETROWLIST, SQLResultSetRowList) \ 346 V(SQLRESULTSETROWLIST, SQLResultSetRowList) \
347 V(SQLTRANSACTION, SQLTransaction) 347 V(SQLTRANSACTION, SQLTransaction)
348 #else 348 #else
349 #define DOM_OBJECT_DATABASE_TYPES(V) 349 #define DOM_OBJECT_DATABASE_TYPES(V)
350 #endif 350 #endif
351 351
352 #if ENABLE(DOM_STORAGE)
353 #define DOM_OBJECT_STORAGE_TYPES(V) \
354 V(STORAGE, Storage) \
355 V(STORAGEEVENT, StorageEvent)
356 #else
357 #define DOM_OBJECT_STORAGE_TYPES(V)
358 #endif
359
352 #define DOM_OBJECT_TYPES(V) \ 360 #define DOM_OBJECT_TYPES(V) \
353 DOM_OBJECT_TYPES_1(V) \ 361 DOM_OBJECT_TYPES_1(V) \
354 DOM_OBJECT_TYPES_2(V) \ 362 DOM_OBJECT_TYPES_2(V) \
355 DOM_OBJECT_DATABASE_TYPES(V) 363 DOM_OBJECT_DATABASE_TYPES(V) \
364 DOM_OBJECT_STORAGE_TYPES(V)
356 365
357 #if ENABLE(SVG) 366 #if ENABLE(SVG)
358 // SVG_OBJECT_TYPES are svg non-node, non-pod types. 367 // SVG_OBJECT_TYPES are svg non-node, non-pod types.
359 #define SVG_OBJECT_TYPES(V) \ 368 #define SVG_OBJECT_TYPES(V) \
360 V(SVGANGLE, SVGAngle) \ 369 V(SVGANGLE, SVGAngle) \
361 V(SVGANIMATEDANGLE, SVGAnimatedAngle) \ 370 V(SVGANIMATEDANGLE, SVGAnimatedAngle) \
362 V(SVGANIMATEDBOOLEAN, SVGAnimatedBoolean) \ 371 V(SVGANIMATEDBOOLEAN, SVGAnimatedBoolean) \
363 V(SVGANIMATEDENUMERATION, SVGAnimatedEnumeration) \ 372 V(SVGANIMATEDENUMERATION, SVGAnimatedEnumeration) \
364 V(SVGANIMATEDINTEGER, SVGAnimatedInteger) \ 373 V(SVGANIMATEDINTEGER, SVGAnimatedInteger) \
365 V(SVGANIMATEDLENGTH, SVGAnimatedLength) \ 374 V(SVGANIMATEDLENGTH, SVGAnimatedLength) \
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 } 492 }
484 493
485 static FunctionTemplateFactory GetFactory(V8WrapperType type); 494 static FunctionTemplateFactory GetFactory(V8WrapperType type);
486 // Returns a field to be used as cache for the template for the given type 495 // Returns a field to be used as cache for the template for the given type
487 static v8::Persistent<v8::FunctionTemplate>* GetCache(V8WrapperType type); 496 static v8::Persistent<v8::FunctionTemplate>* GetCache(V8WrapperType type);
488 }; 497 };
489 498
490 } 499 }
491 500
492 #endif // V8_INDEX_H__ 501 #endif // V8_INDEX_H__
OLDNEW
« no previous file with comments | « webkit/port/bindings/v8/v8_custom.h ('k') | webkit/port/bindings/v8/v8_index.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698