| OLD | NEW |
| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 or name == 'DragEvent' | 79 or name == 'DragEvent' |
| 80 or name == 'ErrorEvent' | 80 or name == 'ErrorEvent' |
| 81 or name == 'FocusEvent' | 81 or name == 'FocusEvent' |
| 82 or name == 'HashChangeEvent' | 82 or name == 'HashChangeEvent' |
| 83 or name == 'IDBVersionChangeEvent' | 83 or name == 'IDBVersionChangeEvent' |
| 84 or name == 'KeyboardEvents' | 84 or name == 'KeyboardEvents' |
| 85 or name == 'MutationEvent' | 85 or name == 'MutationEvent' |
| 86 or name == 'MutationEvents' | 86 or name == 'MutationEvents' |
| 87 or name == 'PageTransitionEvent' | 87 or name == 'PageTransitionEvent' |
| 88 or name == 'PopStateEvent' | 88 or name == 'PopStateEvent' |
| 89 or name == 'ProgressEvent' | |
| 90 or name == 'StorageEvent' | 89 or name == 'StorageEvent' |
| 91 or name == 'SVGEvents' | 90 or name == 'SVGEvents' |
| 92 or name == 'TextEvent' | 91 or name == 'TextEvent' |
| 93 or name == 'TrackEvent' | 92 or name == 'TrackEvent' |
| 94 or name == 'TransitionEvent' | 93 or name == 'TransitionEvent' |
| 95 or name == 'WebGLContextEvent' | 94 or name == 'WebGLContextEvent' |
| 96 or name == 'WebKitAnimationEvent' | 95 or name == 'WebKitAnimationEvent' |
| 97 or name == 'WebKitTransitionEvent' | 96 or name == 'WebKitTransitionEvent' |
| 98 or name == 'WheelEvent') | 97 or name == 'WheelEvent') |
| 99 | 98 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 def generate_implementation(self): | 176 def generate_implementation(self): |
| 178 return { | 177 return { |
| 179 'namespace': self.namespace, | 178 'namespace': self.namespace, |
| 180 'suffix': self.suffix, | 179 'suffix': self.suffix, |
| 181 'events': self.json5_file.name_dictionaries, | 180 'events': self.json5_file.name_dictionaries, |
| 182 } | 181 } |
| 183 | 182 |
| 184 | 183 |
| 185 if __name__ == "__main__": | 184 if __name__ == "__main__": |
| 186 json5_generator.Maker(EventFactoryWriter).main() | 185 json5_generator.Maker(EventFactoryWriter).main() |
| OLD | NEW |