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

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

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove some noise 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/tests/idls/TestExposedInterface.idl
diff --git a/Source/bindings/tests/idls/TestExposedInterface.idl b/Source/bindings/tests/idls/TestExposedInterface.idl
new file mode 100644
index 0000000000000000000000000000000000000000..9a259b8dc3d9e5074483f444640a5ccb6c621c35
--- /dev/null
+++ b/Source/bindings/tests/idls/TestExposedInterface.idl
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[
+ Exposed=Worker&Window&ServiceWorker
Jens Widell 2014/07/29 18:24:29 We typically prefer to not add additional files he
Inactive 2014/07/29 18:54:47 Note that the new spec says this should be: Expose
Peter Beverloo 2014/07/30 14:48:15 I don't mind updating the syntax, but not as part
Peter Beverloo 2014/07/30 14:48:15 Ack. I'll split it up later, as I'd like to keep a
+] interface TestExposedInterface {
+ 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();
Peter Beverloo 2014/07/29 17:40:26 Note: We need some way to recognize that "ServiceW
+};

Powered by Google App Engine
This is Rietveld 408576698