OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import argparse | 5 import argparse |
6 import copy | 6 import copy |
7 from datetime import datetime | 7 from datetime import datetime |
8 from functools import partial | 8 from functools import partial |
9 import os | 9 import os |
10 import re | 10 import re |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 'mac': 'Feature::MACOSX_PLATFORM', | 194 'mac': 'Feature::MACOSX_PLATFORM', |
195 'win': 'Feature::WIN_PLATFORM', | 195 'win': 'Feature::WIN_PLATFORM', |
196 } | 196 } |
197 } | 197 } |
198 }, | 198 }, |
199 'session_types': { | 199 'session_types': { |
200 list: { | 200 list: { |
201 'enum_map': { | 201 'enum_map': { |
202 'regular': 'FeatureSessionType::REGULAR', | 202 'regular': 'FeatureSessionType::REGULAR', |
203 'kiosk': 'FeatureSessionType::KIOSK', | 203 'kiosk': 'FeatureSessionType::KIOSK', |
| 204 'kiosk.autolaunched': 'FeatureSessionType::AUTOLAUNCHED_KIOSK', |
204 } | 205 } |
205 } | 206 } |
206 }, | 207 }, |
207 'source': { | 208 'source': { |
208 unicode: {}, | 209 unicode: {}, |
209 'shared': True | 210 'shared': True |
210 }, | 211 }, |
211 'whitelist': { | 212 'whitelist': { |
212 list: {'subtype': unicode} | 213 list: {'subtype': unicode} |
213 }, | 214 }, |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 help='The source features.json files') | 776 help='The source features.json files') |
776 args = parser.parse_args() | 777 args = parser.parse_args() |
777 if args.feature_type not in FEATURE_TYPES: | 778 if args.feature_type not in FEATURE_TYPES: |
778 raise NameError('Unknown feature type: %s' % args.feature_type) | 779 raise NameError('Unknown feature type: %s' % args.feature_type) |
779 c = FeatureCompiler(args.chrome_root, args.source_files, args.feature_type, | 780 c = FeatureCompiler(args.chrome_root, args.source_files, args.feature_type, |
780 args.provider_class, args.out_root, | 781 args.provider_class, args.out_root, |
781 args.out_base_filename) | 782 args.out_base_filename) |
782 c.Load() | 783 c.Load() |
783 c.Compile() | 784 c.Compile() |
784 c.Write() | 785 c.Write() |
OLD | NEW |