| OLD | NEW |
| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 r'return createWrapperFunction(element)'), | 77 r'return createWrapperFunction(element)'), |
| 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( |
| 88 r'return V8CustomElement::wrap\(element, creationContext, constructo
r, isolate\);'), |
| 89 r'return DartCustomElement::toDart(element, constructor);'), |
| 90 (re.compile( |
| 91 r'return wrap\(toHTMLUnknownElement\(element\), creationContext, iso
late\);'), |
| 92 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element
));'), |
| 87 (re.compile(r'createV8%sWrapper' % tag), r'createDart%sWrapper' % tag), | 93 (re.compile(r'createV8%sWrapper' % tag), r'createDart%sWrapper' % tag), |
| 88 (re.compile(r', v8::Isolate\*( isolate)?'), ''), | 94 (re.compile(r', v8::Isolate\*( isolate)?'), ''), |
| 89 (re.compile(r', v8::Handle<v8::Object> creationContext'), ''), | 95 (re.compile(r', v8::Handle<v8::Object> creationContext'), ''), |
| 90 (re.compile(r'v8::Handle<v8::Object>'), 'Dart_Handle'), | 96 (re.compile(r'v8::Handle<v8::Object>'), 'Dart_Handle'), |
| 91 (re.compile(r'findSVGTagNameOfV8Type'), 'findSVGTagNameOfDartType'), | 97 (re.compile(r'findSVGTagNameOfV8Type'), 'findSVGTagNameOfDartType'), |
| 92 (re.compile(r'findHTMLTagNameOfV8Type'), 'findHTMLTagNameOfDartType'), | 98 (re.compile(r'findHTMLTagNameOfV8Type'), 'findHTMLTagNameOfDartType'), |
| 93 (re.compile(r'V8CustomElement'), 'DartCustomElement'), | 99 (re.compile(r'V8CustomElement'), 'DartCustomElement'), |
| 94 (re.compile(r'WrapperTypeInfo'), 'DartWrapperTypeInfo'), | 100 (re.compile(r'WrapperTypeInfo'), 'DartWrapperTypeInfo'), |
| 95 (re.compile(r'WrapperTypeTraits'), 'DartWrapperTypeTraits'), | 101 (re.compile(r'WrapperTypeTraits'), 'DartWrapperTypeTraits'), |
| 96 (re.compile( | |
| 97 r'return DartCustomElement::wrap\(element, creationContext, construc
tor, isolate\);'), | |
| 98 r'return DartCustomElement::toDart(element, constructor);'), | |
| 99 (re.compile( | |
| 100 r'return wrap\(toHTMLUnknownElement\(element\), creationContext, iso
late\);'), | |
| 101 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element
));'), | |
| 102 ]) | 102 ]) |
| 103 | 103 |
| 104 return 0 | 104 return 0 |
| 105 | 105 |
| 106 if __name__ == '__main__': | 106 if __name__ == '__main__': |
| 107 sys.exit(main(sys.argv)) | 107 sys.exit(main(sys.argv)) |
| OLD | NEW |