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

Side by Side Diff: third_party/WebKit/Source/build/scripts/make_media_feature_names.py

Issue 2638233002: Convert make_names and make_event_factory to use json5 config format. (Closed)
Patch Set: fix PLATFORM_EXPORT Created 3 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 unified diff | Download patch
OLDNEW
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 sys 7 import sys
8 import in_generator 8 import json5_generator
9 import make_names 9 import make_names
10 import media_feature_symbol 10 import media_feature_symbol
11 11
12 12
13 class MakeMediaFeatureNamesWriter(make_names.MakeNamesWriter): 13 class MakeMediaFeatureNamesWriter(make_names.MakeNamesWriter):
14 pass 14 pass
15 15
16 MakeMediaFeatureNamesWriter.filters['symbol'] = media_feature_symbol.getMediaFea tureSymbolWithSuffix('MediaFeature') 16 MakeMediaFeatureNamesWriter.filters['symbol'] = media_feature_symbol.getMediaFea tureSymbolWithSuffix('MediaFeature')
17 17
18 if __name__ == "__main__": 18 if __name__ == "__main__":
19 in_generator.Maker(MakeMediaFeatureNamesWriter).main(sys.argv) 19 json5_generator.Maker(MakeMediaFeatureNamesWriter).main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698