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

Unified Diff: Source/bindings/scripts/unstable/v8_callback_interface.py

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/scripts/unstable/v8_callback_interface.py
diff --git a/Source/bindings/scripts/unstable/v8_callback_interface.py b/Source/bindings/scripts/unstable/v8_callback_interface.py
index 64fa4b7b8c674b2f2134c2e54f06d135a9aeaaaf..8e5d34d8698e244c2bc330f7dd76d2850d2698bf 100644
--- a/Source/bindings/scripts/unstable/v8_callback_interface.py
+++ b/Source/bindings/scripts/unstable/v8_callback_interface.py
@@ -73,7 +73,7 @@ def cpp_type(idl_type):
return 'void'
# Callbacks use raw pointers, so used_as_argument=True
usual_cpp_type = v8_types.cpp_type(idl_type, used_as_argument=True)
- if usual_cpp_type.startswith('Vector'):
+ if usual_cpp_type.startswith('Vector') or usual_cpp_type.startswith('WillBeHeapVector'):
Nils Barth (inactive) 2014/03/03 02:47:53 You can use a tuple in startswith, as: if usual_cp
return 'const %s&' % usual_cpp_type
return usual_cpp_type

Powered by Google App Engine
This is Rietveld 408576698