Bug 1930826 - Fix memcpy usage to meet standard requirements r=jgilbert,necko-reviewe...
[gecko.git] / accessible / interfaces / nsIAccessibleDocument.idl
blob1886621c373fe1fd5ff54092afc4c64e9ca9a8fd
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;
11 webidl Document;
13 /**
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
26 /**
27 * The URL of the document
29 readonly attribute AString URL;
31 /**
32 * The title of the document, as specified in the document.
34 readonly attribute AString title;
36 /**
37 * The mime type of the document
39 readonly attribute AString mimeType;
41 /**
42 * The doc type of the document, as specified in the document.
44 readonly attribute AString docType;
46 /**
47 * The Document interface associated with this document.
49 readonly attribute Document DOMDocument;
51 /**
52 * The nsIDOMWindow that the document resides in.
54 readonly attribute mozIDOMWindowProxy window;
56 /**
57 * Return the parent document accessible.
59 readonly attribute nsIAccessibleDocument parentDocument;
61 /**
62 * Return the count of child document accessibles.
64 readonly attribute unsigned long childDocumentCount;
66 /**
67 * Return the child document accessible at the given index.
69 nsIAccessibleDocument getChildDocumentAt(in unsigned long index);