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

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

Issue 344593002: Qualify RuntimeEnabledFeatures.h and remove unnecessary include dir. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8SVGTestInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_ extended_attribute_value, runtime_enabled_function_name 47 from v8_utilities import capitalize, conditional_string, cpp_name, gc_type, has_ extended_attribute_value, runtime_enabled_function_name
48 48
49 49
50 INTERFACE_H_INCLUDES = frozenset([ 50 INTERFACE_H_INCLUDES = frozenset([
51 'bindings/v8/V8Binding.h', 51 'bindings/v8/V8Binding.h',
52 'bindings/v8/V8DOMWrapper.h', 52 'bindings/v8/V8DOMWrapper.h',
53 'bindings/v8/WrapperTypeInfo.h', 53 'bindings/v8/WrapperTypeInfo.h',
54 'platform/heap/Handle.h', 54 'platform/heap/Handle.h',
55 ]) 55 ])
56 INTERFACE_CPP_INCLUDES = frozenset([ 56 INTERFACE_CPP_INCLUDES = frozenset([
57 'RuntimeEnabledFeatures.h',
58 'bindings/v8/ExceptionState.h', 57 'bindings/v8/ExceptionState.h',
59 'bindings/v8/V8DOMConfiguration.h', 58 'bindings/v8/V8DOMConfiguration.h',
60 'bindings/v8/V8HiddenValue.h', 59 'bindings/v8/V8HiddenValue.h',
61 'bindings/v8/V8ObjectConstructor.h', 60 'bindings/v8/V8ObjectConstructor.h',
62 'core/dom/ContextFeatures.h', 61 'core/dom/ContextFeatures.h',
63 'core/dom/Document.h', 62 'core/dom/Document.h',
63 'platform/RuntimeEnabledFeatures.h',
64 'platform/TraceEvent.h', 64 'platform/TraceEvent.h',
65 'wtf/GetPtr.h', 65 'wtf/GetPtr.h',
66 'wtf/RefPtr.h', 66 'wtf/RefPtr.h',
67 ]) 67 ])
68 68
69 69
70 def generate_interface(interface): 70 def generate_interface(interface):
71 includes.clear() 71 includes.clear()
72 includes.update(INTERFACE_CPP_INCLUDES) 72 includes.update(INTERFACE_CPP_INCLUDES)
73 header_includes = set(INTERFACE_H_INCLUDES) 73 header_includes = set(INTERFACE_H_INCLUDES)
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 deleter = next( 1073 deleter = next(
1074 method 1074 method
1075 for method in interface.operations 1075 for method in interface.operations
1076 if ('deleter' in method.specials and 1076 if ('deleter' in method.specials and
1077 len(method.arguments) == 1 and 1077 len(method.arguments) == 1 and
1078 str(method.arguments[0].idl_type) == 'DOMString')) 1078 str(method.arguments[0].idl_type) == 'DOMString'))
1079 except StopIteration: 1079 except StopIteration:
1080 return None 1080 return None
1081 1081
1082 return property_deleter(deleter) 1082 return property_deleter(deleter)
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/tests/results/V8SVGTestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698