nsIAccessibleDocument.idl (2065B)
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/. */ 5 6 #include "nsISupports.idl" 7 8 interface nsIAccessiblePivot; 9 interface mozIDOMWindowProxy; 10 11 webidl BrowsingContext; 12 webidl Document; 13 14 /** 15 * An interface for in-process accessibility clients 16 * that wish to retrieve information about a document. 17 * When accessibility is turned on in Gecko, 18 * there is an nsIAccessibleDocument for each document 19 * whether it is XUL, HTML or whatever. 20 * You can QueryInterface to nsIAccessibleDocument from the nsIAccessible for 21 * the root node of a document or you can get one from 22 * nsIAccessible::GetDocument(). 23 */ 24 [scriptable, builtinclass, uuid(5cad5f91-fcce-40e7-913e-4671701d19b4)] 25 interface nsIAccessibleDocument : nsISupports 26 { 27 /** 28 * The URL of the document 29 */ 30 readonly attribute AString URL; 31 32 /** 33 * The title of the document, as specified in the document. 34 */ 35 readonly attribute AString title; 36 37 /** 38 * The mime type of the document 39 */ 40 readonly attribute AString mimeType; 41 42 /** 43 * The doc type of the document, as specified in the document. 44 */ 45 readonly attribute AString docType; 46 47 /** 48 * The Document interface associated with this document. 49 */ 50 readonly attribute Document DOMDocument; 51 52 /** 53 * The nsIDOMWindow that the document resides in. 54 */ 55 readonly attribute mozIDOMWindowProxy window; 56 57 /** 58 * Return the parent document accessible. 59 */ 60 readonly attribute nsIAccessibleDocument parentDocument; 61 62 /** 63 * Return the count of child document accessibles. 64 */ 65 readonly attribute unsigned long childDocumentCount; 66 67 /** 68 * Return the child document accessible at the given index. 69 */ 70 nsIAccessibleDocument getChildDocumentAt(in unsigned long index); 71 72 /** 73 * The BrowsingContext of this document. 74 */ 75 readonly attribute BrowsingContext browsingContext; 76 };