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

Side by Side Diff: bindings/dart/gyp/scripts/massage_factories.py

Issue 13601015: Roll Blink IDLs forward. (Closed) Base URL: http://dart.googlecode.com/svn/third_party/WebCore/
Patch Set: Created 7 years, 8 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 | « bindings/dart/gyp/scripts/build_dart_snapshot.py ('k') | html/HTMLElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (C) 2011 Google Inc. All rights reserved. 3 # Copyright (C) 2011 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 (re.compile( 78 (re.compile(
79 r'return V8%sElement::createWrapper\(element, creationContext, isola te\);' % tag), 79 r'return V8%sElement::createWrapper\(element, creationContext, isola te\);' % tag),
80 r'return DartDOMWrapper::toDart<Dart%sElement>(element);' % tag), 80 r'return DartDOMWrapper::toDart<Dart%sElement>(element);' % tag),
81 (re.compile( 81 (re.compile(
82 r'return createV8HTMLFallbackWrapper\(toHTMLUnknownElement\(element\ ), creationContext, isolate\);'), 82 r'return createV8HTMLFallbackWrapper\(toHTMLUnknownElement\(element\ ), creationContext, isolate\);'),
83 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element ));'), 83 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element ));'),
84 (re.compile( 84 (re.compile(
85 r'return createV8HTMLDirectWrapper\(element, creationContext, isolat e\);'), 85 r'return createV8HTMLDirectWrapper\(element, creationContext, isolat e\);'),
86 r'return DartDOMWrapper::toDart<DartHTMLElement>(element);'), 86 r'return DartDOMWrapper::toDart<DartHTMLElement>(element);'),
87 (re.compile( 87 (re.compile(
88 r'return V8CustomElement::wrap\(element, creationContext, constructo r, isolate\);'), 88 r'#include "CustomElementHelpers.h"'),
89 r'#include "CustomElementHelpers.h"\n#include "DartCustomElement.h"' ),
90 (re.compile(
91 r'return CustomElementHelpers::wrap\(element, creationContext, const ructor, isolate\);'),
89 r'return DartCustomElement::toDart(element, constructor);'), 92 r'return DartCustomElement::toDart(element, constructor);'),
90 (re.compile( 93 (re.compile(
91 r'return wrap\(toHTMLUnknownElement\(element\), creationContext, iso late\);'), 94 r'return wrap\(toHTMLUnknownElement\(element\), creationContext, iso late\);'),
92 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element ));'), 95 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element ));'),
93 (re.compile(r'createV8%sWrapper' % tag), r'createDart%sWrapper' % tag), 96 (re.compile(r'createV8%sWrapper' % tag), r'createDart%sWrapper' % tag),
94 (re.compile(r', v8::Isolate\*( isolate)?'), ''), 97 (re.compile(r', v8::Isolate\*( isolate)?'), ''),
95 (re.compile(r', v8::Handle<v8::Object> creationContext'), ''), 98 (re.compile(r', v8::Handle<v8::Object> creationContext'), ''),
96 (re.compile(r'v8::Handle<v8::Object>'), 'Dart_Handle'), 99 (re.compile(r'v8::Handle<v8::Object>'), 'Dart_Handle'),
97 (re.compile(r'findSVGTagNameOfV8Type'), 'findSVGTagNameOfDartType'), 100 (re.compile(r'findSVGTagNameOfV8Type'), 'findSVGTagNameOfDartType'),
98 (re.compile(r'findHTMLTagNameOfV8Type'), 'findHTMLTagNameOfDartType'), 101 (re.compile(r'findHTMLTagNameOfV8Type'), 'findHTMLTagNameOfDartType'),
99 (re.compile(r'V8CustomElement'), 'DartCustomElement'), 102 (re.compile(r'V8CustomElement'), 'DartCustomElement'),
100 (re.compile(r'WrapperTypeInfo'), 'DartWrapperTypeInfo'), 103 (re.compile(r'WrapperTypeInfo'), 'DartWrapperTypeInfo'),
101 (re.compile(r'WrapperTypeTraits'), 'DartWrapperTypeTraits'), 104 (re.compile(r'WrapperTypeTraits'), 'DartWrapperTypeTraits'),
102 ]) 105 ])
103 106
104 return 0 107 return 0
105 108
106 if __name__ == '__main__': 109 if __name__ == '__main__':
107 sys.exit(main(sys.argv)) 110 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « bindings/dart/gyp/scripts/build_dart_snapshot.py ('k') | html/HTMLElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698