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 |
+] 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(); |
+}; |