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

Unified Diff: bindings/dart/scripts/dart_compiler.py

Issue 959933002: Move IDLs to 39 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 5 years, 10 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 | « bindings/dart/scripts/dart_callback_interface.py ('k') | bindings/dart/scripts/dart_dictionary.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bindings/dart/scripts/dart_compiler.py
diff --git a/bindings/dart/scripts/dart_compiler.py b/bindings/dart/scripts/dart_compiler.py
index 83457d085cd40bb01cf32997497760e236c496a3..84eb655ccd97f21132aebca3f187756ec79ef014 100755
--- a/bindings/dart/scripts/dart_compiler.py
+++ b/bindings/dart/scripts/dart_compiler.py
@@ -38,7 +38,7 @@ import os
import cPickle as pickle
from idl_reader import IdlReader
-from utilities import write_file
+from utilities import write_file, idl_filename_to_component
# TODO(terry): Temporary whitelist of IDL files to skip code generating. e.g.,
@@ -107,7 +107,9 @@ class IdlCompiler(object):
idl_pickle_filename = os.path.join(self.output_directory,
'%s_globals.pickle' % interface_name)
definitions = self.reader.read_idl_definitions(idl_filename)
- output_code_list = self.code_generator.generate_code(definitions,
+ component = idl_filename_to_component(idl_filename)
+
+ output_code_list = self.code_generator.generate_code(definitions[component],
interface_name,
idl_pickle_filename,
self.only_if_changed)
@@ -120,12 +122,15 @@ class IdlCompiler(object):
for output_code, output_filename in zip(output_code_list, output_filenames):
write_file(output_code, output_filename, self.only_if_changed)
- def generate_global_and_write(self, global_pickle_directories, output_filenames):
- output_code_list = self.code_generator.generate_globals(global_pickle_directories,
- self.output_directory)
+ def generate_global_and_write(self, global_entries, output_filenames):
+ output_code_list = self.code_generator.generate_globals(global_entries)
for output_code, output_filename in zip(output_code_list, output_filenames):
write_file(output_code, output_filename, self.only_if_changed)
+ def generate_dart_blink_and_write(self, global_entries, output_filename):
+ output_code = self.code_generator.generate_dart_blink(global_entries)
+ write_file(output_code, output_filename, self.only_if_changed)
+
@abc.abstractmethod
def compile_file(self, idl_filename):
pass
« no previous file with comments | « bindings/dart/scripts/dart_callback_interface.py ('k') | bindings/dart/scripts/dart_dictionary.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698