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

Side by Side Diff: third_party/WebKit/Source/bindings/scripts/v8_types.py

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: 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
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 if native_array_element_type: 430 if native_array_element_type:
431 includes_for_type.update(impl_includes_for_type( 431 includes_for_type.update(impl_includes_for_type(
432 native_array_element_type, interfaces_info)) 432 native_array_element_type, interfaces_info))
433 includes_for_type.add('wtf/Vector.h') 433 includes_for_type.add('wtf/Vector.h')
434 434
435 base_idl_type = idl_type.base_type 435 base_idl_type = idl_type.base_type
436 if idl_type.is_string_type: 436 if idl_type.is_string_type:
437 includes_for_type.add('wtf/text/WTFString.h') 437 includes_for_type.add('wtf/text/WTFString.h')
438 if base_idl_type in interfaces_info: 438 if base_idl_type in interfaces_info:
439 interface_info = interfaces_info[base_idl_type] 439 interface_info = interfaces_info[base_idl_type]
440 if interface_info['include_path']: 440 includes_for_type.add(interface_info['include_path'])
441 includes_for_type.add(interface_info['include_path'])
442 if base_idl_type in INCLUDES_FOR_TYPE: 441 if base_idl_type in INCLUDES_FOR_TYPE:
443 includes_for_type.update(INCLUDES_FOR_TYPE[base_idl_type]) 442 includes_for_type.update(INCLUDES_FOR_TYPE[base_idl_type])
444 if idl_type.is_typed_array: 443 if idl_type.is_typed_array:
445 return set(['core/dom/DOMTypedArray.h']) 444 return set(['core/dom/DOMTypedArray.h'])
446 return includes_for_type 445 return includes_for_type
447 446
448 447
449 def impl_includes_for_type_union(idl_type, interfaces_info): 448 def impl_includes_for_type_union(idl_type, interfaces_info):
450 includes_for_type = set() 449 includes_for_type = set()
451 for member_type in idl_type.member_types: 450 for member_type in idl_type.member_types:
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 number_of_nullable_member_types_union) 1003 number_of_nullable_member_types_union)
1005 1004
1006 1005
1007 def includes_nullable_type_union(idl_type): 1006 def includes_nullable_type_union(idl_type):
1008 # http://heycam.github.io/webidl/#dfn-includes-a-nullable-type 1007 # http://heycam.github.io/webidl/#dfn-includes-a-nullable-type
1009 return idl_type.number_of_nullable_member_types == 1 1008 return idl_type.number_of_nullable_member_types == 1
1010 1009
1011 IdlTypeBase.includes_nullable_type = False 1010 IdlTypeBase.includes_nullable_type = False
1012 IdlNullableType.includes_nullable_type = True 1011 IdlNullableType.includes_nullable_type = True
1013 IdlUnionType.includes_nullable_type = property(includes_nullable_type_union) 1012 IdlUnionType.includes_nullable_type = property(includes_nullable_type_union)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_methods.py ('k') | third_party/WebKit/Source/bindings/scripts/v8_utilities.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698