OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 import sys |
| 7 |
| 8 import css_properties |
| 9 import in_generator |
| 10 import template_expander |
| 11 |
| 12 |
| 13 class CSSPropertyMetadataWriter(css_properties.CSSProperties): |
| 14 def __init__(self, in_file_path): |
| 15 super(CSSPropertyMetadataWriter, self).__init__(in_file_path) |
| 16 self._outputs = {'CSSPropertyMetadata.cpp': self.generate_css_property_m
etadata_cpp} |
| 17 |
| 18 @template_expander.use_jinja('CSSPropertyMetadata.cpp.tmpl') |
| 19 def generate_css_property_metadata_cpp(self): |
| 20 return { |
| 21 'properties': self._properties, |
| 22 } |
| 23 |
| 24 |
| 25 if __name__ == '__main__': |
| 26 in_generator.Maker(CSSPropertyMetadataWriter).main(sys.argv) |
OLD | NEW |