OLD | NEW |
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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 includes_for_type.add('wtf/Vector.h') | 435 includes_for_type.add('wtf/Vector.h') |
436 | 436 |
437 base_idl_type = idl_type.base_type | 437 base_idl_type = idl_type.base_type |
438 if idl_type.is_string_type: | 438 if idl_type.is_string_type: |
439 includes_for_type.add('wtf/text/WTFString.h') | 439 includes_for_type.add('wtf/text/WTFString.h') |
440 if base_idl_type in interfaces_info: | 440 if base_idl_type in interfaces_info: |
441 interface_info = interfaces_info[idl_type.base_type] | 441 interface_info = interfaces_info[idl_type.base_type] |
442 includes_for_type.add(interface_info['include_path']) | 442 includes_for_type.add(interface_info['include_path']) |
443 if base_idl_type in INCLUDES_FOR_TYPE: | 443 if base_idl_type in INCLUDES_FOR_TYPE: |
444 includes_for_type.update(INCLUDES_FOR_TYPE[base_idl_type]) | 444 includes_for_type.update(INCLUDES_FOR_TYPE[base_idl_type]) |
| 445 if idl_type.is_typed_array: |
| 446 return set(['core/dom/DOMTypedArray.h']) |
445 return includes_for_type | 447 return includes_for_type |
446 | 448 |
447 IdlTypeBase.impl_includes_for_type = impl_includes_for_type | 449 IdlTypeBase.impl_includes_for_type = impl_includes_for_type |
448 | 450 |
449 | 451 |
450 component_dir = {} | 452 component_dir = {} |
451 | 453 |
452 | 454 |
453 def set_component_dirs(new_component_dirs): | 455 def set_component_dirs(new_component_dirs): |
454 component_dir.update(new_component_dirs) | 456 component_dir.update(new_component_dirs) |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 number_of_nullable_member_types_union) | 923 number_of_nullable_member_types_union) |
922 | 924 |
923 | 925 |
924 def includes_nullable_type_union(idl_type): | 926 def includes_nullable_type_union(idl_type): |
925 # http://heycam.github.io/webidl/#dfn-includes-a-nullable-type | 927 # http://heycam.github.io/webidl/#dfn-includes-a-nullable-type |
926 return idl_type.number_of_nullable_member_types == 1 | 928 return idl_type.number_of_nullable_member_types == 1 |
927 | 929 |
928 IdlTypeBase.includes_nullable_type = False | 930 IdlTypeBase.includes_nullable_type = False |
929 IdlNullableType.includes_nullable_type = True | 931 IdlNullableType.includes_nullable_type = True |
930 IdlUnionType.includes_nullable_type = property(includes_nullable_type_union) | 932 IdlUnionType.includes_nullable_type = property(includes_nullable_type_union) |
OLD | NEW |