blob: 5f1ad9cbf886a8974c519f0565fde42cb45b9e0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/usr/bin/env python
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
import json5_generator
import make_names
import media_feature_symbol
class MakeMediaFeatureNamesWriter(make_names.MakeNamesWriter):
def __init__(self, json5_file_path, output_dir):
super(MakeMediaFeatureNamesWriter, self).__init__(json5_file_path, output_dir)
MakeMediaFeatureNamesWriter.filters['symbol'] = (
media_feature_symbol.getMediaFeatureSymbolWithSuffix('MediaFeature'))
if __name__ == "__main__":
json5_generator.Maker(MakeMediaFeatureNamesWriter).main()
|