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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 'component_extensions_auto_granted': { | 129 'component_extensions_auto_granted': { |
130 bool: {} | 130 bool: {} |
131 }, | 131 }, |
132 'contexts': { | 132 'contexts': { |
133 list: { | 133 list: { |
134 'enum_map': { | 134 'enum_map': { |
135 'blessed_extension': 'Feature::BLESSED_EXTENSION_CONTEXT', | 135 'blessed_extension': 'Feature::BLESSED_EXTENSION_CONTEXT', |
136 'blessed_web_page': 'Feature::BLESSED_WEB_PAGE_CONTEXT', | 136 'blessed_web_page': 'Feature::BLESSED_WEB_PAGE_CONTEXT', |
137 'content_script': 'Feature::CONTENT_SCRIPT_CONTEXT', | 137 'content_script': 'Feature::CONTENT_SCRIPT_CONTEXT', |
138 'extension_service_worker': 'Feature::SERVICE_WORKER_CONTEXT', | 138 'extension_service_worker': 'Feature::SERVICE_WORKER_CONTEXT', |
| 139 'lock_screen_extension': 'Feature::LOCK_SCREEN_EXTENSION_CONTEXT', |
139 'web_page': 'Feature::WEB_PAGE_CONTEXT', | 140 'web_page': 'Feature::WEB_PAGE_CONTEXT', |
140 'webui': 'Feature::WEBUI_CONTEXT', | 141 'webui': 'Feature::WEBUI_CONTEXT', |
141 'unblessed_extension': 'Feature::UNBLESSED_EXTENSION_CONTEXT', | 142 'unblessed_extension': 'Feature::UNBLESSED_EXTENSION_CONTEXT', |
142 }, | 143 }, |
143 'allow_all': True | 144 'allow_all': True |
144 }, | 145 }, |
145 }, | 146 }, |
146 'default_parent': { | 147 'default_parent': { |
147 bool: {'values': [True]} | 148 bool: {'values': [True]} |
148 }, | 149 }, |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 help='The source features.json files') | 777 help='The source features.json files') |
777 args = parser.parse_args() | 778 args = parser.parse_args() |
778 if args.feature_type not in FEATURE_TYPES: | 779 if args.feature_type not in FEATURE_TYPES: |
779 raise NameError('Unknown feature type: %s' % args.feature_type) | 780 raise NameError('Unknown feature type: %s' % args.feature_type) |
780 c = FeatureCompiler(args.chrome_root, args.source_files, args.feature_type, | 781 c = FeatureCompiler(args.chrome_root, args.source_files, args.feature_type, |
781 args.provider_class, args.out_root, | 782 args.provider_class, args.out_root, |
782 args.out_base_filename) | 783 args.out_base_filename) |
783 c.Load() | 784 c.Load() |
784 c.Compile() | 785 c.Compile() |
785 c.Write() | 786 c.Write() |
OLD | NEW |