| // Copyright 2024 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Example WebIDL compatible schema for testing API definition features. |
| // This will be added to as support for each features is implemented. |
| |
| dictionary ExampleType { |
| DOMString someString; |
| double someNumber; |
| boolean? optionalBoolean; |
| }; |
| |
| interface TestWebIdl { |
| |
| static void returnsVoid(); |
| static boolean returnsBoolean(); |
| static double returnsDouble(); |
| static long returnsLong(); |
| static DOMString returnsDOMString(); |
| }; |
| |
| partial interface Browser { |
| static attribute TestWebIdl testWebIdl; |
| }; |