| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 from v8_utilities import (capitalize, cpp_name, | 49 from v8_utilities import (capitalize, cpp_name, |
| 50 has_extended_attribute_value, | 50 has_extended_attribute_value, |
| 51 extended_attribute_value_as_list) | 51 extended_attribute_value_as_list) |
| 52 | 52 |
| 53 | 53 |
| 54 INTERFACE_H_INCLUDES = frozenset([ | 54 INTERFACE_H_INCLUDES = frozenset([ |
| 55 'platform/heap/Handle.h', | 55 'platform/heap/Handle.h', |
| 56 ]) | 56 ]) |
| 57 | 57 |
| 58 INTERFACE_CPP_INCLUDES = frozenset([ | 58 INTERFACE_CPP_INCLUDES = frozenset([ |
| 59 'sky/engine/bindings2/exception_state.h', | 59 'sky/engine/bindings/exception_state.h', |
| 60 'core/dom/Document.h', | 60 'core/dom/Document.h', |
| 61 'base/trace_event/trace_event.h', | 61 'base/trace_event/trace_event.h', |
| 62 'wtf/GetPtr.h', | 62 'wtf/GetPtr.h', |
| 63 'wtf/RefPtr.h', | 63 'wtf/RefPtr.h', |
| 64 ]) | 64 ]) |
| 65 | 65 |
| 66 | 66 |
| 67 def interface_context(interface): | 67 def interface_context(interface): |
| 68 includes.clear() | 68 includes.clear() |
| 69 includes.update(INTERFACE_CPP_INCLUDES) | 69 includes.update(INTERFACE_CPP_INCLUDES) |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 deleter = next( | 885 deleter = next( |
| 886 method | 886 method |
| 887 for method in interface.operations | 887 for method in interface.operations |
| 888 if ('deleter' in method.specials and | 888 if ('deleter' in method.specials and |
| 889 len(method.arguments) == 1 and | 889 len(method.arguments) == 1 and |
| 890 str(method.arguments[0].idl_type) == 'DOMString')) | 890 str(method.arguments[0].idl_type) == 'DOMString')) |
| 891 except StopIteration: | 891 except StopIteration: |
| 892 return None | 892 return None |
| 893 | 893 |
| 894 return property_deleter(deleter) | 894 return property_deleter(deleter) |
| OLD | NEW |