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
|
+}; |