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

Side by Side Diff: Source/bindings/scripts/v8_interface.py

Issue 451013003: Rename V8WindowShell to WindowProxy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 header_includes.update(v8_types.includes_for_interface(parent_interface) ) 79 header_includes.update(v8_types.includes_for_interface(parent_interface) )
80 extended_attributes = interface.extended_attributes 80 extended_attributes = interface.extended_attributes
81 81
82 is_audio_buffer = inherits_interface(interface.name, 'AudioBuffer') 82 is_audio_buffer = inherits_interface(interface.name, 'AudioBuffer')
83 if is_audio_buffer: 83 if is_audio_buffer:
84 includes.add('modules/webaudio/AudioBuffer.h') 84 includes.add('modules/webaudio/AudioBuffer.h')
85 85
86 is_document = inherits_interface(interface.name, 'Document') 86 is_document = inherits_interface(interface.name, 'Document')
87 if is_document: 87 if is_document:
88 includes.update(['bindings/core/v8/ScriptController.h', 88 includes.update(['bindings/core/v8/ScriptController.h',
89 'bindings/core/v8/V8WindowShell.h', 89 'bindings/core/v8/WindowProxy.h',
90 'core/frame/LocalFrame.h']) 90 'core/frame/LocalFrame.h'])
91 91
92 # [ActiveDOMObject] 92 # [ActiveDOMObject]
93 is_active_dom_object = 'ActiveDOMObject' in extended_attributes 93 is_active_dom_object = 'ActiveDOMObject' in extended_attributes
94 94
95 # [CheckSecurity] 95 # [CheckSecurity]
96 is_check_security = 'CheckSecurity' in extended_attributes 96 is_check_security = 'CheckSecurity' in extended_attributes
97 if is_check_security: 97 if is_check_security:
98 includes.add('bindings/core/v8/BindingSecurity.h') 98 includes.add('bindings/core/v8/BindingSecurity.h')
99 99
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 deleter = next( 1104 deleter = next(
1105 method 1105 method
1106 for method in interface.operations 1106 for method in interface.operations
1107 if ('deleter' in method.specials and 1107 if ('deleter' in method.specials and
1108 len(method.arguments) == 1 and 1108 len(method.arguments) == 1 and
1109 str(method.arguments[0].idl_type) == 'DOMString')) 1109 str(method.arguments[0].idl_type) == 'DOMString'))
1110 except StopIteration: 1110 except StopIteration:
1111 return None 1111 return None
1112 1112
1113 return property_deleter(deleter) 1113 return property_deleter(deleter)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698