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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_dictionary.py

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout tests Created 3 years, 8 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: third_party/WebKit/Source/bindings/scripts/v8_dictionary.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py b/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py
index 14af42f00089bedabc542cf66bb3c4a007a3f44a..b7c7df62643af0c79c50c10421cbd04664cd04ef 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py
@@ -229,6 +229,10 @@ def member_impl_context(member, interfaces_info, header_includes,
else:
header_includes.update(idl_type.impl_includes_for_type(interfaces_info))
+ setter_value = 'value'
+ if idl_type.is_array_buffer_view_or_typed_array:
+ setter_value += '.view()'
+
return {
'cpp_default_value': cpp_default_value,
'cpp_name': cpp_name,
@@ -243,4 +247,5 @@ def member_impl_context(member, interfaces_info, header_includes,
'nullable_indicator_name': nullable_indicator_name,
'rvalue_cpp_type': idl_type.cpp_type_args(used_as_rvalue_type=True),
'setter_name': setter_name_for_dictionary_member(member),
+ 'setter_value': setter_value,
}

Powered by Google App Engine
This is Rietveld 408576698