OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import media_feature_symbol | 7 import media_feature_symbol |
8 import in_generator | 8 import in_generator |
9 import template_expander | 9 import template_expander |
10 import name_utilities | 10 import name_utilities |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 self._outputs = { | 32 self._outputs = { |
33 ('MediaFeatures.h'): self.generate_header, | 33 ('MediaFeatures.h'): self.generate_header, |
34 } | 34 } |
35 self._template_context = { | 35 self._template_context = { |
36 'namespace': '', | 36 'namespace': '', |
37 'export': '', | 37 'export': '', |
38 'entries': self.in_file.name_dictionaries, | 38 'entries': self.in_file.name_dictionaries, |
39 } | 39 } |
40 | 40 |
41 @template_expander.use_jinja("MediaFeatures.h.tmpl", filters=filters) | 41 @template_expander.use_jinja('MediaFeatures.h.tmpl', filters=filters) |
42 def generate_header(self): | 42 def generate_header(self): |
43 return self._template_context | 43 return self._template_context |
44 | 44 |
45 if __name__ == "__main__": | 45 if __name__ == '__main__': |
46 in_generator.Maker(MakeMediaFeaturesWriter).main(sys.argv) | 46 in_generator.Maker(MakeMediaFeaturesWriter).main(sys.argv) |
OLD | NEW |