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

Side by Side Diff: Source/bindings/templates/interface.h

Issue 27638002: IDL compiler: Basic setters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix ; 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/templates/interface.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 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 24 matching lines...) Expand all
35 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 35 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
36 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 36 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
37 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 37 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
38 static {{cpp_class_name}}* toNative(v8::Handle<v8::Object> object) 38 static {{cpp_class_name}}* toNative(v8::Handle<v8::Object> object)
39 { 39 {
40 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 40 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
41 } 41 }
42 static void derefObject(void*); 42 static void derefObject(void*);
43 static WrapperTypeInfo info; 43 static WrapperTypeInfo info;
44 {% for attribute in attributes %} 44 {% for attribute in attributes %}
45 {% if attribute.is_custom_getter %}{# FIXME: and not attribute.implemented_b y #} 45 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #}
46 {% filter conditional(attribute.conditional_string) %} 46 {% filter conditional(attribute.conditional_string) %}
47 static void {{attribute.name}}AttributeGetterCustom(v8::Local<v8::String> na me, const v8::PropertyCallbackInfo<v8::Value>&); 47 static void {{attribute.name}}AttributeGetterCustom(v8::Local<v8::String> na me, const v8::PropertyCallbackInfo<v8::Value>&);
48 {% endfilter %} 48 {% endfilter %}
49 {% endif %} 49 {% endif %}
50 {% endfor %} 50 {% endfor %}
51 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ; 51 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0 ;
52 static inline void* toInternalPointer({{cpp_class_name}}* impl) 52 static inline void* toInternalPointer({{cpp_class_name}}* impl)
53 { 53 {
54 return impl; 54 return impl;
55 } 55 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 154 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
155 } 155 }
156 156
157 } 157 }
158 {% if conditional_string %} 158 {% if conditional_string %}
159 159
160 #endif // {{conditional_string}} 160 #endif // {{conditional_string}}
161 {% endif %} 161 {% endif %}
162 162
163 #endif // {{v8_class_name}}_h 163 #endif // {{v8_class_name}}_h
OLDNEW
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698