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

Unified Diff: bindings/scripts/compute_interfaces_info_overall.py

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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
Index: bindings/scripts/compute_interfaces_info_overall.py
diff --git a/bindings/scripts/compute_interfaces_info_overall.py b/bindings/scripts/compute_interfaces_info_overall.py
index 6e311211ae92b78a02160b5ce58392bcc0f48f64..928a911cd9c49fa7ec90f5ebb48ab0ed5d9ad3aa 100755
--- a/bindings/scripts/compute_interfaces_info_overall.py
+++ b/bindings/scripts/compute_interfaces_info_overall.py
@@ -68,6 +68,11 @@ Current keys are:
'include_path': path for use in C++ #include directives
'dependencies_full_paths': paths to dependencies (for merging into main)
'dependencies_include_paths': paths for use in C++ #include directives
+ 'dependencies_other_component_full_paths':
+ paths to dependencies (cannot merge because of other component)
+ 'dependencies_other_component_include_paths':
+ paths for use in C++ #include directives because of dependencies in
+ other component
Note that all of these are stable information, unlikely to change without
moving or deleting files (hence requiring a full rebuild anyway) or significant
@@ -86,8 +91,9 @@ from utilities import idl_filename_to_component, read_pickle_files, write_pickle
INHERITED_EXTENDED_ATTRIBUTES = set([
'ActiveDOMObject',
'DependentLifetime',
+ 'DoNotExposeJSAccessors',
+ 'ExposeJSAccessors',
'GarbageCollected',
- 'NotScriptWrappable',
'WillBeGarbageCollected',
])
@@ -268,18 +274,46 @@ def compute_interfaces_info_overall(info_individuals):
for implemented_interface_info in implemented_interfaces_info:
if (implemented_interface_info['is_legacy_treat_as_partial_interface'] and
implemented_interface_info['include_path']):
- implemented_interfaces_include_paths.append(implemented_interface_info['include_path'])
+ implemented_interfaces_include_paths.append(
+ implemented_interface_info['include_path'])
+
+ dependencies_full_paths = implemented_interfaces_full_paths
+ dependencies_include_paths = implemented_interfaces_include_paths
+ dependencies_other_component_full_paths = []
+ dependencies_other_component_include_paths = []
+
+ component = idl_filename_to_component(interface_info['full_path'])
+ for full_path in partial_interfaces_full_paths:
+ partial_interface_component = idl_filename_to_component(full_path)
+ if component == partial_interface_component:
+ dependencies_full_paths.append(full_path)
+ else:
+ dependencies_other_component_full_paths.append(full_path)
+
+ for include_path in partial_interfaces_include_paths:
+ partial_interface_component = idl_filename_to_component(include_path)
+ if component == partial_interface_component:
+ dependencies_include_paths.append(include_path)
+ else:
+ dependencies_other_component_include_paths.append(include_path)
+
+ if interface_info['has_union_types']:
+ dependencies_include_paths.append(
+ 'bindings/%s/v8/UnionTypes%s.h' % (component, component.capitalize()))
interface_info.update({
- 'dependencies_full_paths': (partial_interfaces_full_paths +
- implemented_interfaces_full_paths),
- 'dependencies_include_paths': (partial_interfaces_include_paths +
- implemented_interfaces_include_paths),
+ 'dependencies_full_paths': dependencies_full_paths,
+ 'dependencies_include_paths': dependencies_include_paths,
+ 'dependencies_other_component_full_paths':
+ dependencies_other_component_full_paths,
+ 'dependencies_other_component_include_paths':
+ dependencies_other_component_include_paths,
})
# Clean up temporary private information
for interface_info in interfaces_info.itervalues():
del interface_info['extended_attributes']
+ del interface_info['has_union_types']
del interface_info['is_legacy_treat_as_partial_interface']
del interface_info['parent']
« no previous file with comments | « bindings/scripts/compute_interfaces_info_individual.py ('k') | bindings/scripts/generate_event_interfaces.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698