| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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)) |
| OLD | NEW |