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

Unified Diff: Source/bindings/tests/idls/TestInterface.idl

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed renames Created 6 years, 4 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/templates/interface_base.cpp ('k') | Source/bindings/tests/results/V8SVGTestInterface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/idls/TestInterface.idl
diff --git a/Source/bindings/tests/idls/TestInterface.idl b/Source/bindings/tests/idls/TestInterface.idl
index 6c7628fca8f58f3364780ac5c4514605096d8371..7dfed9a9bb6e7461c5dcd94526a15c383c402969 100644
--- a/Source/bindings/tests/idls/TestInterface.idl
+++ b/Source/bindings/tests/idls/TestInterface.idl
@@ -40,6 +40,7 @@
RuntimeEnabled=FeatureName,
SetWrapperReferenceTo(TestInterface referencedName),
TypeChecking=Interface|Unrestricted,
+ Exposed=(Worker,Window),
] interface TestInterface : TestInterfaceEmpty {
// members needed to test [ImplementedAs], as this affect attribute
// configuration and method configuration, and [TypeChecking]
@@ -71,6 +72,21 @@
deleter boolean (DOMString name);
[NotEnumerable] stringifier;
+
+ // Per-method [Exposed] annotation support.
+ void alwaysExposedMethod();
+ [Exposed=Worker] void workerExposedMethod();
+ [Exposed=Window] void windowExposedMethod();
+
+ static void alwaysExposedStaticMethod();
+ [Exposed=Worker] static void workerExposedStaticMethod();
+ [Exposed=Window] static void windowExposedStaticMethod();
+
+ attribute long alwaysExposedAttribute;
+ [Exposed=Worker] attribute long workerExposedAttribute;
+ [Exposed=Window] attribute long windowExposedAttribute;
+
+ [Exposed=(Window,ServiceWorker)] void windowAndServiceWorkerExposedMethod();
};
TestInterface implements TestImplements;
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/bindings/tests/results/V8SVGTestInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698