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

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

Issue 2561043002: Clean-up after Form Association Refactoring (Closed)
Patch Set: Removed constructorNeedsFormElement from scripts and HTMLTagNames Created 4 years 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/make_element_lookup_trie.py » ('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 24 matching lines...) Expand all
35 import name_utilities 35 import name_utilities
36 36
37 from make_qualified_names import MakeQualifiedNamesWriter 37 from make_qualified_names import MakeQualifiedNamesWriter
38 38
39 39
40 class MakeElementFactoryWriter(MakeQualifiedNamesWriter): 40 class MakeElementFactoryWriter(MakeQualifiedNamesWriter):
41 defaults = dict(MakeQualifiedNamesWriter.default_parameters, **{ 41 defaults = dict(MakeQualifiedNamesWriter.default_parameters, **{
42 'JSInterfaceName': None, 42 'JSInterfaceName': None,
43 'Conditional': None, 43 'Conditional': None,
44 'constructorNeedsCreatedByParser': None, 44 'constructorNeedsCreatedByParser': None,
45 'constructorNeedsFormElement': None,
46 'interfaceName': None, 45 'interfaceName': None,
47 'noConstructor': None, 46 'noConstructor': None,
48 'noTypeHelpers': None, 47 'noTypeHelpers': None,
49 'runtimeEnabled': None, 48 'runtimeEnabled': None,
50 }) 49 })
51 default_parameters = dict(MakeQualifiedNamesWriter.default_parameters, **{ 50 default_parameters = dict(MakeQualifiedNamesWriter.default_parameters, **{
52 'fallbackInterfaceName': '', 51 'fallbackInterfaceName': '',
53 'fallbackJSInterfaceName': '', 52 'fallbackJSInterfaceName': '',
54 }) 53 })
55 filters = MakeQualifiedNamesWriter.filters 54 filters = MakeQualifiedNamesWriter.filters
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 if tag['JSInterfaceName']: 108 if tag['JSInterfaceName']:
110 return tag['JSInterfaceName'] 109 return tag['JSInterfaceName']
111 return self._interface(tag) 110 return self._interface(tag)
112 111
113 def _has_js_interface(self, tag): 112 def _has_js_interface(self, tag):
114 return not tag['noConstructor'] and self._js_interface(tag) != ('%sEleme nt' % self.namespace) 113 return not tag['noConstructor'] and self._js_interface(tag) != ('%sEleme nt' % self.namespace)
115 114
116 115
117 if __name__ == "__main__": 116 if __name__ == "__main__":
118 in_generator.Maker(MakeElementFactoryWriter).main(sys.argv) 117 in_generator.Maker(MakeElementFactoryWriter).main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/make_element_lookup_trie.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698