2001-06-30 04:25:09 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-06-30 04:25:09 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2003-04-15 12:45:55 +04:00
|
|
|
|
2003-06-16 14:35:11 +04:00
|
|
|
interface nsIAccessible;
|
2013-05-18 06:10:29 +04:00
|
|
|
interface nsIAccessiblePivot;
|
2003-06-16 14:35:11 +04:00
|
|
|
interface nsIDOMDocument;
|
|
|
|
interface nsIDOMNode;
|
|
|
|
interface nsIDOMWindow;
|
2001-06-30 04:25:09 +04:00
|
|
|
|
2003-07-22 18:55:22 +04:00
|
|
|
/**
|
|
|
|
* An interface for in-process accessibility clients
|
|
|
|
* that wish to retrieve information about a document.
|
|
|
|
* When accessibility is turned on in Gecko,
|
|
|
|
* there is an nsIAccessibleDocument for each document
|
|
|
|
* whether it is XUL, HTML or whatever.
|
2012-02-07 17:18:33 +04:00
|
|
|
* You can QueryInterface to nsIAccessibleDocument from the nsIAccessible for
|
|
|
|
* the root node of a document. You can also get one from
|
|
|
|
* nsIAccessible::GetAccessibleDocument() or
|
2003-07-22 18:55:22 +04:00
|
|
|
* nsIAccessibleEvent::GetAccessibleDocument()
|
|
|
|
*/
|
2013-05-18 06:10:29 +04:00
|
|
|
[scriptable, uuid(fe5b3886-2b6a-491a-80cd-a3e6342c451d)]
|
2001-06-30 04:25:09 +04:00
|
|
|
interface nsIAccessibleDocument : nsISupports
|
|
|
|
{
|
2003-07-22 18:55:22 +04:00
|
|
|
/**
|
|
|
|
* The URL of the document
|
|
|
|
*/
|
2002-05-21 09:16:58 +04:00
|
|
|
readonly attribute AString URL;
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The title of the document, as specified in the document.
|
|
|
|
*/
|
2002-05-21 09:16:58 +04:00
|
|
|
readonly attribute AString title;
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The mime type of the document
|
|
|
|
*/
|
2002-05-21 09:16:58 +04:00
|
|
|
readonly attribute AString mimeType;
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The doc type of the document, as specified in the document.
|
|
|
|
*/
|
2002-05-21 09:16:58 +04:00
|
|
|
readonly attribute AString docType;
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDOMDocument interface associated with this document.
|
|
|
|
*/
|
2010-04-27 07:19:49 +04:00
|
|
|
readonly attribute nsIDOMDocument DOMDocument;
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDOMWindow that the document resides in.
|
|
|
|
*/
|
2003-06-16 14:35:11 +04:00
|
|
|
readonly attribute nsIDOMWindow window;
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The namespace for each ID that is handed back.
|
|
|
|
*/
|
2002-05-21 09:16:58 +04:00
|
|
|
AString getNameSpaceURIForID(in short nameSpaceID);
|
2003-07-22 18:55:22 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The window handle for the OS window the document is being displayed in.
|
|
|
|
* For example, in Windows you can static cast it to an HWND.
|
|
|
|
*/
|
2003-06-16 14:35:11 +04:00
|
|
|
[noscript] readonly attribute voidPtr windowHandle;
|
2010-09-09 18:44:56 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the parent document accessible.
|
|
|
|
*/
|
|
|
|
readonly attribute nsIAccessibleDocument parentDocument;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the count of child document accessibles.
|
|
|
|
*/
|
|
|
|
readonly attribute unsigned long childDocumentCount;
|
|
|
|
|
2013-05-18 06:10:29 +04:00
|
|
|
/**
|
|
|
|
* The virtual cursor pivot this document manages.
|
|
|
|
*/
|
|
|
|
readonly attribute nsIAccessiblePivot virtualCursor;
|
|
|
|
|
2010-09-09 18:44:56 +04:00
|
|
|
/**
|
|
|
|
* Return the child document accessible at the given index.
|
|
|
|
*/
|
|
|
|
nsIAccessibleDocument getChildDocumentAt(in unsigned long index);
|
2001-06-30 04:25:09 +04:00
|
|
|
};
|