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

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

Issue 2390483002: Drop [RuntimeEnabled] for all IDL dictionaries (Closed)
Patch Set: rebase Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/core/dom/IntersectionObserverInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e2ff61bccbfaabdd148855e804d071fc6dd3a75b..4bdb8fd2a51f1bf1f0c95617fa749c0b59bcb804 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_dictionary.py
@@ -54,6 +54,10 @@ def dictionary_context(dictionary, interfaces_info):
includes.clear()
includes.update(DICTIONARY_CPP_INCLUDES)
+ if 'RuntimeEnabled' in dictionary.extended_attributes:
+ raise Exception(
+ 'Dictionary cannot be RuntimeEnabled: %s' % dictionary.name)
+
members = [member_context(dictionary, member)
for member in sorted(dictionary.members,
key=operator.attrgetter('name'))]
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/IntersectionObserverInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698