summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/aom/accessible_node_list.idl
blob: 68573677e95e19dcb0ca6d25cf1192b81a63c579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2017 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.

// Accessibility Object Model node list
// Explainer: https://github.com/WICG/aom/blob/master/explainer.md
// Spec: https://wicg.github.io/aom/spec/
[
    RuntimeEnabled=AccessibilityObjectModel
] interface AccessibleNodeList {
  constructor(optional sequence<AccessibleNode> nodes = []);
  attribute unsigned long length;
  getter AccessibleNode? item(unsigned long index);
  [RaisesException] setter void (unsigned long index, AccessibleNode node);
  void add(AccessibleNode node, optional AccessibleNode? before = null);
  void remove(long index);
};