| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # | 2 # |
| 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 """Generates sdk/lib/_blink/dartium/_blink_dartium.dart file.""" | 7 """Generates sdk/lib/_blink/dartium/_blink_dartium.dart file.""" |
| 8 | 8 |
| 9 import os | 9 import os |
| 10 from sets import Set | 10 from sets import Set |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 static spawnDomUri(uri) native "Utils_spawnDomUri"; | 124 static spawnDomUri(uri) native "Utils_spawnDomUri"; |
| 125 | 125 |
| 126 static void spawnDomHelper(Function f, int replyTo) native "Utils_spawnDomHelp
er"; | 126 static void spawnDomHelper(Function f, int replyTo) native "Utils_spawnDomHelp
er"; |
| 127 | 127 |
| 128 static register(document, tag, customType, extendsTagName) native "Utils_regis
ter"; | 128 static register(document, tag, customType, extendsTagName) native "Utils_regis
ter"; |
| 129 | 129 |
| 130 // Defines an interceptor if there is an appropriate JavaScript prototype to d
efine it on. | 130 // Defines an interceptor if there is an appropriate JavaScript prototype to d
efine it on. |
| 131 // In any case, returns a typed JS wrapper compatibile with dart:html and the
new | 131 // In any case, returns a typed JS wrapper compatibile with dart:html and the
new |
| 132 // typed JS Interop. | 132 // typed JS Interop. |
| 133 static defineInterceptorCustomElement(jsObject, Type type) native "Utils_defin
eInterceptorCustomElement"; | 133 static defineInterceptorCustomElement(jsObject, Type type) native "Utils_defin
eInterceptorCustomElement"; |
| 134 static defineInterceptor(jsObject, Type type) native "Utils_defineInterceptor"
; |
| 134 static setInstanceInterceptor(o, Type type, {bool customElement: false}) nativ
e "Utils_setInstanceInterceptor"; | 135 static setInstanceInterceptor(o, Type type, {bool customElement: false}) nativ
e "Utils_setInstanceInterceptor"; |
| 135 | 136 |
| 136 // This method will throw if the element isn't actually a real Element. | 137 // This method will throw if the element isn't actually a real Element. |
| 137 static initializeCustomElement(element) native "Utils_initializeCustomElement"
; | 138 static initializeCustomElement(element) native "Utils_initializeCustomElement"
; |
| 138 } | 139 } |
| 139 | 140 |
| 140 class Blink_DOMWindowCrossFrame { | 141 class Blink_DOMWindowCrossFrame { |
| 141 // FIXME: Return to using explicit cross frame entry points after roll to M35 | 142 // FIXME: Return to using explicit cross frame entry points after roll to M35 |
| 142 static get_history(_DOMWindowCrossFrame) native "Window_history_cross_frame_Ge
tter"; | 143 static get_history(_DOMWindowCrossFrame) native "Window_history_cross_frame_Ge
tter"; |
| 143 | 144 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 else: | 557 else: |
| 557 arguments = [] | 558 arguments = [] |
| 558 for i in range(0, callback_index): | 559 for i in range(0, callback_index): |
| 559 arguments.append(ARGUMENT_NUM % i) | 560 arguments.append(ARGUMENT_NUM % i) |
| 560 argument_list = ', '.join(arguments) | 561 argument_list = ', '.join(arguments) |
| 561 if operation.is_static: | 562 if operation.is_static: |
| 562 class_property = CLASS_STATIC % interface.id | 563 class_property = CLASS_STATIC % interface.id |
| 563 blink_file.write(Select_Stub(STATIC_OPERATION_ARGS, is_native) % (name,
callback_index, argument_list, class_property, interface.id, name, argument_list
)) | 564 blink_file.write(Select_Stub(STATIC_OPERATION_ARGS, is_native) % (name,
callback_index, argument_list, class_property, interface.id, name, argument_list
)) |
| 564 else: | 565 else: |
| 565 blink_file.write(Select_Stub(OPERATION_ARGS, is_native) % (name, callbac
k_index, argument_list, interface.id, name, argument_list)) | 566 blink_file.write(Select_Stub(OPERATION_ARGS, is_native) % (name, callbac
k_index, argument_list, interface.id, name, argument_list)) |
| OLD | NEW |