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

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

Issue 17246: Add V8 bindings for Worker (Part I). (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 11 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_index.h ('k') | webkit/port/bindings/v8/v8_proxy.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) 2008, Google Inc. 1 // Copyright (c) 2008, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 #if ENABLE(VIDEO) 348 #if ENABLE(VIDEO)
349 #include "V8HTMLAudioElement.h" 349 #include "V8HTMLAudioElement.h"
350 #include "V8HTMLMediaElement.h" 350 #include "V8HTMLMediaElement.h"
351 #include "V8HTMLSourceElement.h" 351 #include "V8HTMLSourceElement.h"
352 #include "V8HTMLVideoElement.h" 352 #include "V8HTMLVideoElement.h"
353 #include "V8MediaError.h" 353 #include "V8MediaError.h"
354 #include "V8TimeRanges.h" 354 #include "V8TimeRanges.h"
355 #endif 355 #endif
356 356
357 #if ENABLE(WORKERS)
358 #include "V8Worker.h"
359 #include "V8WorkerLocation.h"
360 #endif
361
357 namespace WebCore { 362 namespace WebCore {
358 363
359 FunctionTemplateFactory V8ClassIndex::GetFactory(V8WrapperType type) { 364 FunctionTemplateFactory V8ClassIndex::GetFactory(V8WrapperType type) {
360 switch (type) { 365 switch (type) {
361 #define MAKE_CASE(type, name)\ 366 #define MAKE_CASE(type, name)\
362 case V8ClassIndex::type: return V8##name::GetTemplate; 367 case V8ClassIndex::type: return V8##name::GetTemplate;
363 WRAPPER_TYPES(MAKE_CASE) 368 WRAPPER_TYPES(MAKE_CASE)
364 #undef MAKE_CASE 369 #undef MAKE_CASE
365 default: return NULL; 370 default: return NULL;
366 } 371 }
(...skipping 13 matching lines...) Expand all
380 case V8ClassIndex::type: return &name##_cache_; 385 case V8ClassIndex::type: return &name##_cache_;
381 ALL_WRAPPER_TYPES(MAKE_CASE) 386 ALL_WRAPPER_TYPES(MAKE_CASE)
382 #undef MAKE_CASE 387 #undef MAKE_CASE
383 default: 388 default:
384 ASSERT(false); 389 ASSERT(false);
385 return NULL; 390 return NULL;
386 } 391 }
387 } 392 }
388 393
389 } // namespace WebCore 394 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/port/bindings/v8/v8_index.h ('k') | webkit/port/bindings/v8/v8_proxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698