1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsISupports.idl"
8 interface nsIAccessiblePivot
;
9 interface mozIDOMWindowProxy
;
14 * An interface for in-process accessibility clients
15 * that wish to retrieve information about a document.
16 * When accessibility is turned on in Gecko,
17 * there is an nsIAccessibleDocument for each document
18 * whether it is XUL, HTML or whatever.
19 * You can QueryInterface to nsIAccessibleDocument from the nsIAccessible for
20 * the root node of a document or you can get one from
21 * nsIAccessible::GetDocument().
23 [scriptable
, builtinclass
, uuid(5cad5f91
-fcce
-40e7
-913e-4671701d19b4
)]
24 interface nsIAccessibleDocument
: nsISupports
27 * The URL of the document
29 readonly attribute AString URL
;
32 * The title of the document, as specified in the document.
34 readonly attribute AString title
;
37 * The mime type of the document
39 readonly attribute AString mimeType
;
42 * The doc type of the document, as specified in the document.
44 readonly attribute AString docType
;
47 * The Document interface associated with this document.
49 readonly attribute Document DOMDocument
;
52 * The nsIDOMWindow that the document resides in.
54 readonly attribute mozIDOMWindowProxy window
;
57 * Return the parent document accessible.
59 readonly attribute nsIAccessibleDocument parentDocument
;
62 * Return the count of child document accessibles.
64 readonly attribute
unsigned long childDocumentCount
;
67 * Return the child document accessible at the given index.
69 nsIAccessibleDocument getChildDocumentAt
(in unsigned long index
);