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

Side by Side Diff: Source/build/scripts/templates/ElementWrapperFactory.h.tmpl

Issue 40433002: Make wrapperTypeInfo static member const in bindings classes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 2 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
« no previous file with comments | « Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from "macros.tmpl" import license -%} 1 {% from "macros.tmpl" import license -%}
2 {{ license() }} 2 {{ license() }}
3 3
4 #ifndef V8{{namespace}}ElementWrapperFactory_h 4 #ifndef V8{{namespace}}ElementWrapperFactory_h
5 #define V8{{namespace}}ElementWrapperFactory_h 5 #define V8{{namespace}}ElementWrapperFactory_h
6 6
7 #include "V8{{namespace}}Element.h" 7 #include "V8{{namespace}}Element.h"
8 #include "V8{{fallback_js_interface}}.h" 8 #include "V8{{fallback_js_interface}}.h"
9 #include <v8.h> 9 #include <v8.h>
10 10
11 namespace WebCore { 11 namespace WebCore {
12 12
13 class {{namespace}}Element; 13 class {{namespace}}Element;
14 14
15 WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString& name ); 15 const WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString & name);
16 16
17 v8::Handle<v8::Object> createV8{{namespace}}Wrapper({{namespace}}Element*, v8::H andle<v8::Object> creationContext, v8::Isolate*); 17 v8::Handle<v8::Object> createV8{{namespace}}Wrapper({{namespace}}Element*, v8::H andle<v8::Object> creationContext, v8::Isolate*);
18 inline v8::Handle<v8::Object> createV8{{namespace}}DirectWrapper({{namespace}}El ement* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 18 inline v8::Handle<v8::Object> createV8{{namespace}}DirectWrapper({{namespace}}El ement* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
19 { 19 {
20 return V8{{namespace}}Element::createWrapper(element, creationContext, isola te); 20 return V8{{namespace}}Element::createWrapper(element, creationContext, isola te);
21 } 21 }
22 inline v8::Handle<v8::Object> createV8{{namespace}}FallbackWrapper({{fallback_js _interface}}* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isol ate) 22 inline v8::Handle<v8::Object> createV8{{namespace}}FallbackWrapper({{fallback_js _interface}}* element, v8::Handle<v8::Object> creationContext, v8::Isolate* isol ate)
23 { 23 {
24 return V8{{fallback_js_interface}}::createWrapper(element, creationContext, isolate); 24 return V8{{fallback_js_interface}}::createWrapper(element, creationContext, isolate);
25 } 25 }
26 26
27 } 27 }
28 28
29 #endif 29 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698