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

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

Issue 196653003: Add [DoNotGenerateClassBindings] extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Compiles and links Created 6 years, 9 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/scripts/v8_interface.py ('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 {# 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 friend v8::Handle<v8::Object> wrap(Node*, v8::Handle<v8::Object> creationCon text, v8::Isolate*); 191 friend v8::Handle<v8::Object> wrap(Node*, v8::Handle<v8::Object> creationCon text, v8::Isolate*);
192 {% endif %} 192 {% endif %}
193 193
194 private: 194 private:
195 {% if not has_custom_to_v8 %} 195 {% if not has_custom_to_v8 %}
196 friend v8::Handle<v8::Object> wrap({{cpp_class}}*, v8::Handle<v8::Object> cr eationContext, v8::Isolate*); 196 friend v8::Handle<v8::Object> wrap({{cpp_class}}*, v8::Handle<v8::Object> cr eationContext, v8::Isolate*);
197 static v8::Handle<v8::Object> createWrapper({{pass_ref_ptr}}<{{cpp_class}}>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 197 static v8::Handle<v8::Object> createWrapper({{pass_ref_ptr}}<{{cpp_class}}>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
198 {% endif %} 198 {% endif %}
199 }; 199 };
200 200
201 {% if has_class_bindings %}
201 {% if has_custom_to_v8 %} 202 {% if has_custom_to_v8 %}
202 class {{cpp_class}}; 203 class {{cpp_class}};
203 v8::Handle<v8::Value> toV8({{cpp_class}}*, v8::Handle<v8::Object> creationContex t, v8::Isolate*); 204 v8::Handle<v8::Value> toV8({{cpp_class}}*, v8::Handle<v8::Object> creationContex t, v8::Isolate*);
204 205
205 template<class CallbackInfo> 206 template<class CallbackInfo>
206 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}* im pl) 207 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}* im pl)
207 { 208 {
208 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 209 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
209 } 210 }
210 211
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 template<class CallbackInfo, class Wrappable> 303 template<class CallbackInfo, class Wrappable>
303 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, {{pass_ref_pt r}}<{{cpp_class}}> impl, Wrappable* wrappable) 304 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, {{pass_ref_pt r}}<{{cpp_class}}> impl, Wrappable* wrappable)
304 { 305 {
305 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 306 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
306 } 307 }
307 308
308 {% if has_event_constructor %} 309 {% if has_event_constructor %}
309 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = ""); 310 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info, const String& = "");
310 311
311 {% endif %} 312 {% endif %}
313 {% endif %}{# has_class_bindings #}
312 } 314 }
313 {% endfilter %} 315 {% endfilter %}
314 #endif // {{v8_class}}_h 316 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698