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

Side by Side Diff: Source/build/scripts/make_qualified_names.py

Issue 57813007: CSS property names and value keywords no longer requires conditions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Julien's review on removing enabled_conditions param Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/build/scripts/make_names.py ('k') | Source/build/scripts/make_runtime_features.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (C) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 'namespace': '', 52 'namespace': '',
53 'namespacePrefix': '', 53 'namespacePrefix': '',
54 'namespaceURI': '', 54 'namespaceURI': '',
55 } 55 }
56 filters = { 56 filters = {
57 'hash': hasher.hash, 57 'hash': hasher.hash,
58 'to_macro_style': name_utilities.to_macro_style, 58 'to_macro_style': name_utilities.to_macro_style,
59 'symbol': _symbol, 59 'symbol': _symbol,
60 } 60 }
61 61
62 def __init__(self, in_file_paths, enabled_conditions): 62 def __init__(self, in_file_paths):
63 super(MakeQualifiedNamesWriter, self).__init__(None, enabled_conditions) 63 super(MakeQualifiedNamesWriter, self).__init__(None)
64 assert len(in_file_paths) <= 2, 'MakeQualifiedNamesWriter requires at mo st 2 in files, got %d.' % len(in_file_paths) 64 assert len(in_file_paths) <= 2, 'MakeQualifiedNamesWriter requires at mo st 2 in files, got %d.' % len(in_file_paths)
65 65
66 if len(in_file_paths) == 2: 66 if len(in_file_paths) == 2:
67 self.tags_in_file = InFile.load_from_files([in_file_paths.pop(0)], s elf.defaults, self.valid_values, self.default_parameters) 67 self.tags_in_file = InFile.load_from_files([in_file_paths.pop(0)], s elf.defaults, self.valid_values, self.default_parameters)
68 else: 68 else:
69 self.tags_in_file = None 69 self.tags_in_file = None
70 70
71 self.attrs_in_file = InFile.load_from_files([in_file_paths.pop()], self. defaults, self.valid_values, self.default_parameters) 71 self.attrs_in_file = InFile.load_from_files([in_file_paths.pop()], self. defaults, self.valid_values, self.default_parameters)
72 72
73 self.namespace = self._parameter('namespace') 73 self.namespace = self._parameter('namespace')
(...skipping 26 matching lines...) Expand all
100 def generate_header(self): 100 def generate_header(self):
101 return self._template_context 101 return self._template_context
102 102
103 @template_expander.use_jinja('MakeQualifiedNames.cpp.tmpl', filters=filters) 103 @template_expander.use_jinja('MakeQualifiedNames.cpp.tmpl', filters=filters)
104 def generate_implementation(self): 104 def generate_implementation(self):
105 return self._template_context 105 return self._template_context
106 106
107 107
108 if __name__ == "__main__": 108 if __name__ == "__main__":
109 in_generator.Maker(MakeQualifiedNamesWriter).main(sys.argv) 109 in_generator.Maker(MakeQualifiedNamesWriter).main(sys.argv)
OLDNEW
« no previous file with comments | « Source/build/scripts/make_names.py ('k') | Source/build/scripts/make_runtime_features.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698