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

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

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 6 years, 5 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/v8_attributes.py
diff --git a/Source/bindings/scripts/v8_attributes.py b/Source/bindings/scripts/v8_attributes.py
index 3f3b3f649d2389ced02c1b1a389dadd7adada875..16acccb04d94603e1a5c17e44ad72d457012793d 100644
--- a/Source/bindings/scripts/v8_attributes.py
+++ b/Source/bindings/scripts/v8_attributes.py
@@ -100,6 +100,7 @@ def attribute_context(interface, attribute):
'cpp_name': cpp_name(attribute),
'cpp_type': idl_type.cpp_type,
'cpp_type_initializer': idl_type.cpp_type_initializer,
+ 'custom_exposed_rules': v8_utilities.exposed(attribute, interface), # [Exposed]
haraken 2014/07/30 16:32:03 custom_exposed_rules => exposed_rules
Jens Widell 2014/07/30 16:48:45 Or maybe 'exposed_tests'? Or maybe better yet, 'ex
Peter Beverloo 2014/07/31 19:02:21 I agree that |exposed_test| represents the content
'deprecate_as': v8_utilities.deprecate_as(attribute), # [DeprecateAs]
'enum_validation_expression': idl_type.enum_validation_expression,
'has_custom_getter': has_custom_getter,

Powered by Google App Engine
This is Rietveld 408576698