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

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

Issue 176763009: Have DOMWindow deal with references instead of pointers when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 9 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 # 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'heap/Handle.h', 51 'heap/Handle.h',
52 ]) 52 ])
53 INTERFACE_CPP_INCLUDES = frozenset([ 53 INTERFACE_CPP_INCLUDES = frozenset([
54 'RuntimeEnabledFeatures.h', 54 'RuntimeEnabledFeatures.h',
55 'bindings/v8/ExceptionState.h', 55 'bindings/v8/ExceptionState.h',
56 'bindings/v8/V8DOMConfiguration.h', 56 'bindings/v8/V8DOMConfiguration.h',
57 'bindings/v8/V8ObjectConstructor.h', 57 'bindings/v8/V8ObjectConstructor.h',
58 'core/dom/ContextFeatures.h', 58 'core/dom/ContextFeatures.h',
59 'core/dom/Document.h', 59 'core/dom/Document.h',
60 'platform/TraceEvent.h', 60 'platform/TraceEvent.h',
61 'wtf/GetPtr.h', # FIXME: remove if can eliminate WTF::getPtr 61 'wtf/GetPtr.h',
62 'wtf/RefPtr.h', 62 'wtf/RefPtr.h',
63 ]) 63 ])
64 64
65 65
66 def generate_interface(interface): 66 def generate_interface(interface):
67 includes.clear() 67 includes.clear()
68 includes.update(INTERFACE_CPP_INCLUDES) 68 includes.update(INTERFACE_CPP_INCLUDES)
69 header_includes = set(INTERFACE_H_INCLUDES) 69 header_includes = set(INTERFACE_H_INCLUDES)
70 70
71 parent_interface = interface.parent 71 parent_interface = interface.parent
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 deleter = next( 715 deleter = next(
716 method 716 method
717 for method in interface.operations 717 for method in interface.operations
718 if ('deleter' in method.specials and 718 if ('deleter' in method.specials and
719 len(method.arguments) == 1 and 719 len(method.arguments) == 1 and
720 method.arguments[0].idl_type == 'DOMString')) 720 method.arguments[0].idl_type == 'DOMString'))
721 except StopIteration: 721 except StopIteration:
722 return None 722 return None
723 723
724 return property_deleter(deleter) 724 return property_deleter(deleter)
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_callback_interface.py ('k') | Source/bindings/templates/attributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698