chromium/tools/json_schema_compiler/test/web_idl/basics.idl

// 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.
interface TestWebIdl {

  static void returnsVoid();
  static boolean returnsBoolean();
  static double returnsDouble();
  static long returnsLong();
  static DOMString returnsDOMString();
};

partial interface Browser {
  static attribute TestWebIdl testWebIdl;
};