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

Unified Diff: Source/bindings/scripts/v8_methods.py

Issue 1159653002: [bindings] Introduce PostMessage extended keyword (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Typo correction: missing space in methods.cpp Created 5 years, 7 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
« no previous file with comments | « Source/bindings/IDLExtendedAttributes.txt ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/v8_methods.py
diff --git a/Source/bindings/scripts/v8_methods.py b/Source/bindings/scripts/v8_methods.py
index 1b1170057d6b638c2a5c3c3e41521d34a6054261..5831603c1503011358bb44e4bf6c6bf4e72db6a5 100644
--- a/Source/bindings/scripts/v8_methods.py
+++ b/Source/bindings/scripts/v8_methods.py
@@ -118,6 +118,9 @@ def method_context(interface, method, is_visible=True):
is_raises_exception = 'RaisesException' in extended_attributes
is_custom_call_epilogue = has_extended_attribute_value(method, 'Custom', 'CallEpilogue')
+ is_post_message = 'PostMessage' in extended_attributes
+ if is_post_message:
+ includes.add('bindings/core/v8/PostMessage.h')
return {
'activity_logging_world_list': v8_utilities.activity_logging_world_list(method), # [ActivityLogging]
@@ -166,6 +169,7 @@ def method_context(interface, method, is_visible=True):
'is_partial_interface_member':
'PartialInterfaceImplementedAs' in extended_attributes,
'is_per_world_bindings': 'PerWorldBindings' in extended_attributes,
+ 'is_post_message': is_post_message,
'is_raises_exception': is_raises_exception,
'is_read_only': is_unforgeable(interface, method),
'is_static': is_static,
« no previous file with comments | « Source/bindings/IDLExtendedAttributes.txt ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698