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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 (re.compile( | 72 (re.compile( |
73 r'return wrap\(static_cast<(\w+)\*>\(element\), creationContext, iso
late\);'), | 73 r'return wrap\(static_cast<(\w+)\*>\(element\), creationContext, iso
late\);'), |
74 r'return Dart\1::toDart(static_cast<\1*>(element));'), | 74 r'return Dart\1::toDart(static_cast<\1*>(element));'), |
75 (re.compile( | 75 (re.compile( |
76 r'return createWrapperFunction\(element, creationContext, isolate\)'
), | 76 r'return createWrapperFunction\(element, creationContext, isolate\)'
), |
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 V8HTMLCustomElement::wrap\(element, creationContext, isolat
e\);'), | |
83 r'return DartHTMLCustomElement::toDart(element);'), | |
84 (re.compile( | |
85 r'return createV8HTMLFallbackWrapper\(toHTMLUnknownElement\(element\
), creationContext, isolate\);'), | 82 r'return createV8HTMLFallbackWrapper\(toHTMLUnknownElement\(element\
), creationContext, isolate\);'), |
86 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element
));'), | 83 r'return DartHTMLUnknownElement::toDart(toHTMLUnknownElement(element
));'), |
87 (re.compile( | 84 (re.compile( |
88 r'return createV8HTMLDirectWrapper\(element, creationContext, isolat
e\);'), | 85 r'return createV8HTMLDirectWrapper\(element, creationContext, isolat
e\);'), |
89 r'return DartDOMWrapper::toDart<DartHTMLElement>(element);'), | 86 r'return DartDOMWrapper::toDart<DartHTMLElement>(element);'), |
90 (re.compile(r'createV8%sWrapper' % tag), r'createDart%sWrapper' % tag), | 87 (re.compile(r'createV8%sWrapper' % tag), r'createDart%sWrapper' % tag), |
91 (re.compile(r', v8::Isolate\*( isolate)?'), ''), | 88 (re.compile(r', v8::Isolate\*( isolate)?'), ''), |
92 (re.compile(r', v8::Handle<v8::Object> creationContext'), ''), | 89 (re.compile(r', v8::Handle<v8::Object> creationContext'), ''), |
93 (re.compile(r'v8::Handle<v8::Object>'), 'Dart_Handle'), | 90 (re.compile(r'v8::Handle<v8::Object>'), 'Dart_Handle'), |
| 91 (re.compile(r'findSVGTagNameOfV8Type'), 'findSVGTagNameOfDartType'), |
| 92 (re.compile(r'findHTMLTagNameOfV8Type'), 'findHTMLTagNameOfDartType'), |
| 93 (re.compile(r'V8CustomElement'), 'DartCustomElement'), |
| 94 (re.compile(r'WrapperTypeInfo'), 'DartWrapperTypeInfo'), |
| 95 (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
));'), |
94 ]) | 102 ]) |
95 | 103 |
96 return 0 | 104 return 0 |
97 | 105 |
98 if __name__ == '__main__': | 106 if __name__ == '__main__': |
99 sys.exit(main(sys.argv)) | 107 sys.exit(main(sys.argv)) |
OLD | NEW |