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

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

Issue 139653005: IDL compiler: sync Python to r166626 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refactored 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 22 matching lines...) Expand all
33 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! 33 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY!
34 34
35 #ifndef {{v8_class}}_h 35 #ifndef {{v8_class}}_h
36 #define {{v8_class}}_h 36 #define {{v8_class}}_h
37 37
38 {% filter conditional(conditional_string) %} 38 {% filter conditional(conditional_string) %}
39 {% for filename in header_includes %} 39 {% for filename in header_includes %}
40 #include "{{filename}}" 40 #include "{{filename}}"
41 {% endfor %} 41 {% endfor %}
42 42
43 {% set pass_ref_ptr = 'PassRefPtrWillBeRawPtr' if is_garbage_collected else
44 'PassRefPtr' %}
45 namespace WebCore { 43 namespace WebCore {
46 44
47 {% if has_event_constructor %} 45 {% if has_event_constructor %}
48 class Dictionary; 46 class Dictionary;
49 {% endif %} 47 {% endif %}
50 {% if named_constructor %} 48 {% if named_constructor %}
51 class {{v8_class}}Constructor { 49 class {{v8_class}}Constructor {
52 public: 50 public:
53 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*, WrapperWor ldType); 51 static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*, WrapperWor ldType);
54 static const WrapperTypeInfo wrapperTypeInfo; 52 static const WrapperTypeInfo wrapperTypeInfo;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 301 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
304 } 302 }
305 303
306 {% if has_event_constructor %} 304 {% if has_event_constructor %}
307 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& = "");
308 306
309 {% endif %} 307 {% endif %}
310 } 308 }
311 {% endfilter %} 309 {% endfilter %}
312 #endif // {{v8_class}}_h 310 #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