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

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

Issue 112303003: IDL compiler: [Constructor] overloading (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Formatting Created 7 years 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 static void visitDOMWrapper(void*, const v8::Persistent<v8::Object>&, v8::Is olate*); 60 static void visitDOMWrapper(void*, const v8::Persistent<v8::Object>&, v8::Is olate*);
61 {% endif %} 61 {% endif %}
62 {% if is_active_dom_object %} 62 {% if is_active_dom_object %}
63 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>); 63 static ActiveDOMObject* toActiveDOMObject(v8::Handle<v8::Object>);
64 {% endif %} 64 {% endif %}
65 {% for method in methods if method.is_custom %} 65 {% for method in methods if method.is_custom %}
66 {% filter conditional(method.conditional_string) %} 66 {% filter conditional(method.conditional_string) %}
67 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 67 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
68 {% endfilter %} 68 {% endfilter %}
69 {% endfor %} 69 {% endfor %}
70 {% if has_constructor or has_event_constructor %} 70 {% if constructors or has_event_constructor %}
71 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 71 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
72 {% endif %} 72 {% endif %}
73 {% for attribute in attributes %} 73 {% for attribute in attributes %}
74 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #} 74 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #}
75 {% filter conditional(attribute.conditional_string) %} 75 {% filter conditional(attribute.conditional_string) %}
76 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba ckInfo<v8::Value>&); 76 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba ckInfo<v8::Value>&);
77 {% endfilter %} 77 {% endfilter %}
78 {% endif %} 78 {% endif %}
79 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #} 79 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #}
80 {% filter conditional(attribute.conditional_string) %} 80 {% filter conditional(attribute.conditional_string) %}
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 230 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
231 } 231 }
232 232
233 {% if has_event_constructor %} 233 {% if has_event_constructor %}
234 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const String& = ""); 234 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const String& = "");
235 235
236 {% endif %} 236 {% endif %}
237 } 237 }
238 {% endfilter %} 238 {% endfilter %}
239 #endif // {{v8_class}}_h 239 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_interface.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698