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

Unified Diff: Source/bindings/dart/scripts/dart_methods.py

Issue 290803003: Remove auto-setup table. (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1916
Patch Set: merged Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/dart/scripts/dart_attributes.py ('k') | Source/bindings/dart/scripts/dart_types.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/dart/scripts/dart_methods.py
diff --git a/Source/bindings/dart/scripts/dart_methods.py b/Source/bindings/dart/scripts/dart_methods.py
index 07ec4bf99755a60baa6b75ea8ea350d6d70a462e..87939ebec7fb21526015bd7656efa3c945ed45bd 100644
--- a/Source/bindings/dart/scripts/dart_methods.py
+++ b/Source/bindings/dart/scripts/dart_methods.py
@@ -86,7 +86,7 @@ def generate_method(interface, method):
else:
this_cpp_type = idl_type.cpp_type
- is_auto_scope = dart_types.is_auto_scope_callback(interface.name, name)
+ is_auto_scope = not 'DartNoAutoScope' in extended_attributes
method_data = {
'activity_logging_world_list': dart_utilities.activity_logging_world_list(method), # [ActivityLogging]
'arguments': [generate_argument(interface, method, argument, index)
@@ -160,7 +160,7 @@ def generate_argument(interface, method, argument, index):
this_cpp_value = cpp_value(interface, method, index)
is_variadic_wrapper_type = argument.is_variadic and idl_type.is_wrapper_type
use_heap_vector_type = is_variadic_wrapper_type and idl_type.is_will_be_garbage_collected
- auto_scope = dart_types.is_auto_scope_callback(interface.name, method.name)
+ auto_scope = not 'DartNoAutoScope' in extended_attributes
this_has_default = 'Default' in extended_attributes
arg_index = index + 1 if not method.is_static else index
@@ -263,7 +263,7 @@ def dart_set_return_value(interface_name, method, cpp_value, for_main_world=Fals
# cpp_value = 'result' # use local variable for value
# release = idl_type.release
- auto_scope = dart_types.is_auto_scope_callback(interface_name, method.name),
+ auto_scope = not 'DartNoAutoScope' in extended_attributes
script_wrappable = 'impl' if inherits_interface(interface_name, 'Node') else ''
return idl_type.dart_set_return_value(cpp_value, extended_attributes,
script_wrappable=script_wrappable,
« no previous file with comments | « Source/bindings/dart/scripts/dart_attributes.py ('k') | Source/bindings/dart/scripts/dart_types.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698