| OLD | NEW |
| 1 # Copyright (C) 2013 Google Inc. All rights reserved. | 1 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 2 # coding=utf-8 | 2 # coding=utf-8 |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 header_includes.update(v8_types.includes_for_interface(parent_interface)
) | 80 header_includes.update(v8_types.includes_for_interface(parent_interface)
) |
| 81 extended_attributes = interface.extended_attributes | 81 extended_attributes = interface.extended_attributes |
| 82 | 82 |
| 83 is_audio_buffer = inherits_interface(interface.name, 'AudioBuffer') | 83 is_audio_buffer = inherits_interface(interface.name, 'AudioBuffer') |
| 84 if is_audio_buffer: | 84 if is_audio_buffer: |
| 85 includes.add('modules/webaudio/AudioBuffer.h') | 85 includes.add('modules/webaudio/AudioBuffer.h') |
| 86 | 86 |
| 87 is_document = inherits_interface(interface.name, 'Document') | 87 is_document = inherits_interface(interface.name, 'Document') |
| 88 if is_document: | 88 if is_document: |
| 89 includes.update(['bindings/core/v8/ScriptController.h', | 89 includes.update(['bindings/core/v8/ScriptController.h', |
| 90 'bindings/core/v8/V8WindowShell.h', | 90 'bindings/core/v8/WindowProxy.h', |
| 91 'core/frame/LocalFrame.h']) | 91 'core/frame/LocalFrame.h']) |
| 92 | 92 |
| 93 # [ActiveDOMObject] | 93 # [ActiveDOMObject] |
| 94 is_active_dom_object = 'ActiveDOMObject' in extended_attributes | 94 is_active_dom_object = 'ActiveDOMObject' in extended_attributes |
| 95 | 95 |
| 96 # [CheckSecurity] | 96 # [CheckSecurity] |
| 97 is_check_security = 'CheckSecurity' in extended_attributes | 97 is_check_security = 'CheckSecurity' in extended_attributes |
| 98 if is_check_security: | 98 if is_check_security: |
| 99 includes.add('bindings/core/v8/BindingSecurity.h') | 99 includes.add('bindings/core/v8/BindingSecurity.h') |
| 100 | 100 |
| (...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 deleter = next( | 1108 deleter = next( |
| 1109 method | 1109 method |
| 1110 for method in interface.operations | 1110 for method in interface.operations |
| 1111 if ('deleter' in method.specials and | 1111 if ('deleter' in method.specials and |
| 1112 len(method.arguments) == 1 and | 1112 len(method.arguments) == 1 and |
| 1113 str(method.arguments[0].idl_type) == 'DOMString')) | 1113 str(method.arguments[0].idl_type) == 'DOMString')) |
| 1114 except StopIteration: | 1114 except StopIteration: |
| 1115 return None | 1115 return None |
| 1116 | 1116 |
| 1117 return property_deleter(deleter) | 1117 return property_deleter(deleter) |
| OLD | NEW |