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

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

Issue 2249043002: Disable WebShare on platforms other than android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (C) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 valid_values = { 42 valid_values = {
43 'status': ['stable', 'experimental', 'test'], 43 'status': ['stable', 'experimental', 'test'],
44 } 44 }
45 defaults = { 45 defaults = {
46 'condition': None, 46 'condition': None,
47 'custom': False, 47 'custom': False,
48 'depends_on': [], 48 'depends_on': [],
49 'feature_policy': None, 49 'feature_policy': None,
50 'implied_by': [], 50 'implied_by': [],
51 'origin_trial_feature_name': None, 51 'origin_trial_feature_name': None,
52 'origin_trial_os': [],
52 'settable_from_internals': False, 53 'settable_from_internals': False,
53 'status': None, 54 'status': None,
54 } 55 }
55 56
56 def __init__(self, in_file_path): 57 def __init__(self, in_file_path):
57 super(RuntimeFeatureWriter, self).__init__(in_file_path) 58 super(RuntimeFeatureWriter, self).__init__(in_file_path)
58 self._outputs = {(self.class_name + '.h'): self.generate_header, 59 self._outputs = {(self.class_name + '.h'): self.generate_header,
59 (self.class_name + '.cpp'): self.generate_implementatio n, 60 (self.class_name + '.cpp'): self.generate_implementatio n,
60 } 61 }
61 62
(...skipping 28 matching lines...) Expand all
90 def generate_header(self): 91 def generate_header(self):
91 return self._template_inputs() 92 return self._template_inputs()
92 93
93 @template_expander.use_jinja(class_name + '.cpp.tmpl') 94 @template_expander.use_jinja(class_name + '.cpp.tmpl')
94 def generate_implementation(self): 95 def generate_implementation(self):
95 return self._template_inputs() 96 return self._template_inputs()
96 97
97 98
98 if __name__ == '__main__': 99 if __name__ == '__main__':
99 in_generator.Maker(RuntimeFeatureWriter).main(sys.argv) 100 in_generator.Maker(RuntimeFeatureWriter).main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698