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

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

Issue 74783008: IDL compiler: [ActiveDOMObject] interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 {# http://www.chromium.org/blink/coding-style#TOC-License #} 1 {# http://www.chromium.org/blink/coding-style#TOC-License #}
2 /* 2 /*
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e); 49 static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp e);
50 static bool hasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); 50 static bool hasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*);
51 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType); 51 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor ldType);
52 static {{cpp_class_name}}* toNative(v8::Handle<v8::Object> object) 52 static {{cpp_class_name}}* toNative(v8::Handle<v8::Object> object)
53 { 53 {
54 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex)); 54 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8 DOMWrapperObjectIndex));
55 } 55 }
56 static void derefObject(void*); 56 static void derefObject(void*);
57 static const WrapperTypeInfo wrapperTypeInfo; 57 static const WrapperTypeInfo wrapperTypeInfo;
58 {% if is_active_dom_object %}
59 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
60 {% endif %}
58 {% for method in methods if method.is_custom %} 61 {% for method in methods if method.is_custom %}
59 {% filter conditional(method.conditional_string) %} 62 {% filter conditional(method.conditional_string) %}
60 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 63 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
61 {% endfilter %} 64 {% endfilter %}
62 {% endfor %} 65 {% endfor %}
63 {% for attribute in attributes %} 66 {% for attribute in attributes %}
64 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #} 67 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #}
65 {% filter conditional(attribute.conditional_string) %} 68 {% filter conditional(attribute.conditional_string) %}
66 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba ckInfo<v8::Value>&); 69 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba ckInfo<v8::Value>&);
67 {% endfilter %} 70 {% endfilter %}
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 183 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
181 } 184 }
182 185
183 } 186 }
184 {% if conditional_string %} 187 {% if conditional_string %}
185 188
186 #endif // {{conditional_string}} 189 #endif // {{conditional_string}}
187 {% endif %} 190 {% endif %}
188 191
189 #endif // {{v8_class_name}}_h 192 #endif // {{v8_class_name}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698