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/bindings/scripts/v8_interface.py

Issue 2856173004: Clean up bindings/core/v8 (Part 5) (Closed)
Patch Set: Fix build Created 3 years, 7 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 runtime_enabled_feature_name, is_legacy_interface_type _checking) 49 runtime_enabled_feature_name, is_legacy_interface_type _checking)
50 50
51 51
52 INTERFACE_H_INCLUDES = frozenset([ 52 INTERFACE_H_INCLUDES = frozenset([
53 'bindings/core/v8/GeneratedCodeHelper.h', 53 'bindings/core/v8/GeneratedCodeHelper.h',
54 'bindings/core/v8/NativeValueTraits.h', 54 'bindings/core/v8/NativeValueTraits.h',
55 'platform/bindings/ScriptWrappable.h', 55 'platform/bindings/ScriptWrappable.h',
56 'bindings/core/v8/ToV8ForCore.h', 56 'bindings/core/v8/ToV8ForCore.h',
57 'bindings/core/v8/V8BindingForCore.h', 57 'bindings/core/v8/V8BindingForCore.h',
58 'platform/bindings/V8DOMWrapper.h', 58 'platform/bindings/V8DOMWrapper.h',
59 'bindings/core/v8/WrapperTypeInfo.h', 59 'platform/bindings/WrapperTypeInfo.h',
60 'platform/heap/Handle.h', 60 'platform/heap/Handle.h',
61 ]) 61 ])
62 INTERFACE_CPP_INCLUDES = frozenset([ 62 INTERFACE_CPP_INCLUDES = frozenset([
63 'bindings/core/v8/ExceptionState.h', 63 'bindings/core/v8/ExceptionState.h',
64 'bindings/core/v8/V8DOMConfiguration.h', 64 'bindings/core/v8/V8DOMConfiguration.h',
65 'platform/bindings/V8ObjectConstructor.h', 65 'platform/bindings/V8ObjectConstructor.h',
66 'core/dom/ExecutionContext.h', 66 'core/dom/ExecutionContext.h',
67 'platform/wtf/GetPtr.h', 67 'platform/wtf/GetPtr.h',
68 'platform/wtf/RefPtr.h', 68 'platform/wtf/RefPtr.h',
69 ]) 69 ])
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 # [NamedConstructor] 292 # [NamedConstructor]
293 named_constructor = named_constructor_context(interface) 293 named_constructor = named_constructor_context(interface)
294 294
295 if constructors or custom_constructors or named_constructor: 295 if constructors or custom_constructors or named_constructor:
296 if interface.is_partial: 296 if interface.is_partial:
297 raise Exception('[Constructor] and [NamedConstructor] MUST NOT be' 297 raise Exception('[Constructor] and [NamedConstructor] MUST NOT be'
298 ' specified on partial interface definitions: ' 298 ' specified on partial interface definitions: '
299 '%s' % interface.name) 299 '%s' % interface.name)
300 if named_constructor: 300 if named_constructor:
301 includes.add('bindings/core/v8/V8PrivateProperty.h') 301 includes.add('platform/bindings/V8PrivateProperty.h')
302 302
303 includes.add('platform/bindings/V8ObjectConstructor.h') 303 includes.add('platform/bindings/V8ObjectConstructor.h')
304 includes.add('core/frame/LocalDOMWindow.h') 304 includes.add('core/frame/LocalDOMWindow.h')
305 elif 'Measure' in extended_attributes or 'MeasureAs' in extended_attributes: 305 elif 'Measure' in extended_attributes or 'MeasureAs' in extended_attributes:
306 if not interface.is_partial: 306 if not interface.is_partial:
307 raise Exception('[Measure] or [MeasureAs] specified for interface wi thout a constructor: ' 307 raise Exception('[Measure] or [MeasureAs] specified for interface wi thout a constructor: '
308 '%s' % interface.name) 308 '%s' % interface.name)
309 309
310 # [ConstructorCallWith=Document] 310 # [ConstructorCallWith=Document]
311 if has_extended_attribute_value(interface, 'ConstructorCallWith', 'Document' ): 311 if has_extended_attribute_value(interface, 'ConstructorCallWith', 'Document' ):
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 extended_attributes = deleter.extended_attributes 1409 extended_attributes = deleter.extended_attributes
1410 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState') 1410 is_call_with_script_state = v8_utilities.has_extended_attribute_value(delete r, 'CallWith', 'ScriptState')
1411 is_ce_reactions = 'CEReactions' in extended_attributes 1411 is_ce_reactions = 'CEReactions' in extended_attributes
1412 return { 1412 return {
1413 'is_call_with_script_state': is_call_with_script_state, 1413 'is_call_with_script_state': is_call_with_script_state,
1414 'is_ce_reactions': is_ce_reactions, 1414 'is_ce_reactions': is_ce_reactions,
1415 'is_custom': 'Custom' in extended_attributes, 1415 'is_custom': 'Custom' in extended_attributes,
1416 'is_raises_exception': 'RaisesException' in extended_attributes, 1416 'is_raises_exception': 'RaisesException' in extended_attributes,
1417 'name': cpp_name(deleter), 1417 'name': cpp_name(deleter),
1418 } 1418 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698