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

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

Issue 900533003: IDL: Support [Unforgeable] on interface definitions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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_utilities.py
diff --git a/Source/bindings/scripts/v8_utilities.py b/Source/bindings/scripts/v8_utilities.py
index 6df63c624cebb3d057e9069d0d8453f21997c37c..3dde61cdc3dcc23428add12a222626687629f11e 100644
--- a/Source/bindings/scripts/v8_utilities.py
+++ b/Source/bindings/scripts/v8_utilities.py
@@ -401,6 +401,12 @@ def runtime_enabled_function_name(definition_or_member):
return 'RuntimeEnabledFeatures::%sEnabled' % uncapitalize(feature_name)
+# [Unforgeable]
+def is_unforgeable(interface, member):
+ return ('Unforgeable' in interface.extended_attributes or
+ 'Unforgeable' in member.extended_attributes)
+
+
################################################################################
# Indexed properties
# http://heycam.github.io/webidl/#idl-indexed-properties
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/tests/idls/core/TestInterfaceWillBeGarbageCollected.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698