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

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

Issue 134683007: IDL compiler: sync Python to r166680 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Order Created 6 years, 10 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
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 named_property_getter.is_custom_property_enumerator %} 125 named_property_getter.is_custom_property_enumerator %}
126 static void namedPropertyEnumeratorCustom(const v8::PropertyCallbackInfo<v8: :Array>&); 126 static void namedPropertyEnumeratorCustom(const v8::PropertyCallbackInfo<v8: :Array>&);
127 {% endif %} 127 {% endif %}
128 {# END custom special operations #} 128 {# END custom special operations #}
129 {% if has_custom_legacy_call_as_function %} 129 {% if has_custom_legacy_call_as_function %}
130 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&); 130 static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
131 {% endif %} 131 {% endif %}
132 {# Custom internal fields #} 132 {# Custom internal fields #}
133 {% set custom_internal_field_counter = 0 %} 133 {% set custom_internal_field_counter = 0 %}
134 {# persistentHandleIndex must be the first field, if it is present #} 134 {# persistentHandleIndex must be the first field, if it is present #}
135 {% if is_garbage_collected %} 135 {% if is_will_be_garbage_collected %}
136 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}}; 136 static const int persistentHandleIndex = v8DefaultWrapperInternalFieldCount + {{custom_internal_field_counter}};
137 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} 137 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %}
138 {% endif %} 138 {% endif %}
139 {% if is_event_target and not is_node %} 139 {% if is_event_target and not is_node %}
140 {# Event listeners on DOM nodes are explicitly supported in the GC controlle r. #} 140 {# Event listeners on DOM nodes are explicitly supported in the GC controlle r. #}
141 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + {{custom_internal_field_counter}}; 141 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + {{custom_internal_field_counter}};
142 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} 142 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %}
143 {% endif %} 143 {% endif %}
144 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}}; 144 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}};
145 {# End custom internal fields #} 145 {# End custom internal fields #}
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 301 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
302 } 302 }
303 303
304 {% if has_event_constructor %} 304 {% if has_event_constructor %}
305 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 305 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
306 306
307 {% endif %} 307 {% endif %}
308 } 308 }
309 {% endfilter %} 309 {% endfilter %}
310 #endif // {{v8_class}}_h 310 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/v8_types.py ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698