2003-04-01 22:18:29 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2003
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
2004-04-17 21:52:36 +00:00
|
|
|
* Original Author: Aaron Leventhal (aaronl@netscape.com)
|
2003-04-01 22:18:29 +00:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-17 21:52:36 +00:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2003-04-01 22:18:29 +00:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
2003-04-15 08:45:55 +00:00
|
|
|
|
2003-04-01 22:18:29 +00:00
|
|
|
#ifndef _nsDocAccessible_H_
|
|
|
|
#define _nsDocAccessible_H_
|
|
|
|
|
2010-06-08 16:39:58 +00:00
|
|
|
#include "nsIAccessibleDocument.h"
|
|
|
|
|
2007-05-01 17:08:26 +00:00
|
|
|
#include "nsHyperTextAccessibleWrap.h"
|
2010-04-27 06:52:03 +00:00
|
|
|
#include "nsEventShell.h"
|
|
|
|
|
2003-04-28 10:24:52 +00:00
|
|
|
#include "nsIDocument.h"
|
2005-06-10 13:57:27 +00:00
|
|
|
#include "nsIDocumentObserver.h"
|
2003-05-15 08:37:38 +00:00
|
|
|
#include "nsIEditor.h"
|
|
|
|
#include "nsIObserver.h"
|
2003-04-15 08:45:55 +00:00
|
|
|
#include "nsIScrollPositionListener.h"
|
2003-04-28 10:24:52 +00:00
|
|
|
#include "nsITimer.h"
|
2003-04-15 08:45:55 +00:00
|
|
|
#include "nsIWeakReference.h"
|
2006-03-22 18:36:36 +00:00
|
|
|
#include "nsCOMArray.h"
|
2007-03-01 05:54:07 +00:00
|
|
|
#include "nsIDocShellTreeNode.h"
|
2003-04-15 08:45:55 +00:00
|
|
|
|
|
|
|
class nsIScrollableView;
|
2003-04-01 22:18:29 +00:00
|
|
|
|
2003-04-15 08:45:55 +00:00
|
|
|
const PRUint32 kDefaultCacheSize = 256;
|
2003-04-01 22:18:29 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
#define NS_DOCACCESSIBLE_IMPL_CID \
|
2010-01-27 11:42:44 +00:00
|
|
|
{ /* 5641921c-a093-4292-9dca-0b51813db57d */ \
|
|
|
|
0x5641921c, \
|
|
|
|
0xa093, \
|
|
|
|
0x4292, \
|
|
|
|
{ 0x9d, 0xca, 0x0b, 0x51, 0x81, 0x3d, 0xb5, 0x7d } \
|
2009-06-25 02:08:53 +00:00
|
|
|
}
|
|
|
|
|
2007-05-01 17:08:26 +00:00
|
|
|
class nsDocAccessible : public nsHyperTextAccessibleWrap,
|
2003-04-01 22:18:29 +00:00
|
|
|
public nsIAccessibleDocument,
|
2005-06-10 13:57:27 +00:00
|
|
|
public nsIDocumentObserver,
|
2003-05-15 08:37:38 +00:00
|
|
|
public nsIObserver,
|
2003-04-15 08:45:55 +00:00
|
|
|
public nsIScrollPositionListener,
|
|
|
|
public nsSupportsWeakReference
|
2004-11-08 21:07:50 +00:00
|
|
|
{
|
2003-04-01 22:18:29 +00:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
2008-08-06 12:19:56 +00:00
|
|
|
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(nsDocAccessible, nsAccessible)
|
|
|
|
|
2003-04-01 22:18:29 +00:00
|
|
|
NS_DECL_NSIACCESSIBLEDOCUMENT
|
2009-06-25 02:08:53 +00:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_DOCACCESSIBLE_IMPL_CID)
|
2003-04-01 22:18:29 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
NS_DECL_NSIOBSERVER
|
2003-04-01 22:18:29 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
public:
|
2010-08-19 02:14:50 +00:00
|
|
|
using nsAccessible::GetParent;
|
|
|
|
|
2010-06-11 08:23:18 +00:00
|
|
|
nsDocAccessible(nsIDocument *aDocument, nsIContent *aRootContent,
|
|
|
|
nsIWeakReference* aShell);
|
2009-06-25 02:08:53 +00:00
|
|
|
virtual ~nsDocAccessible();
|
2003-04-15 08:45:55 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsIAccessible
|
|
|
|
NS_IMETHOD GetName(nsAString& aName);
|
|
|
|
NS_IMETHOD GetDescription(nsAString& aDescription);
|
|
|
|
NS_IMETHOD GetAttributes(nsIPersistentProperties **aAttributes);
|
|
|
|
NS_IMETHOD GetFocusedChild(nsIAccessible **aFocusedChild);
|
|
|
|
NS_IMETHOD TakeFocus(void);
|
2003-04-15 08:45:55 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsIScrollPositionListener
|
2010-01-29 00:03:42 +00:00
|
|
|
virtual void ScrollPositionWillChange(nscoord aX, nscoord aY) {}
|
|
|
|
virtual void ScrollPositionDidChange(nscoord aX, nscoord aY);
|
2003-04-28 10:24:52 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsIDocumentObserver
|
|
|
|
NS_DECL_NSIDOCUMENTOBSERVER
|
2003-06-16 10:35:11 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsAccessNode
|
2010-06-12 04:04:35 +00:00
|
|
|
virtual PRBool Init();
|
|
|
|
virtual void Shutdown();
|
2009-06-25 02:08:53 +00:00
|
|
|
virtual nsIFrame* GetFrame();
|
|
|
|
virtual PRBool IsDefunct();
|
2010-06-11 08:23:18 +00:00
|
|
|
virtual nsINode* GetNode() const { return mDocument; }
|
2010-11-06 04:11:08 +00:00
|
|
|
virtual nsIDocument* GetDocumentNode() const { return mDocument; }
|
2005-03-02 19:05:09 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsAccessible
|
2010-09-05 02:14:01 +00:00
|
|
|
virtual PRUint32 NativeRole();
|
2008-11-04 03:37:46 +00:00
|
|
|
virtual nsresult GetStateInternal(PRUint32 *aState, PRUint32 *aExtraState);
|
2009-06-25 02:12:38 +00:00
|
|
|
virtual nsresult GetARIAState(PRUint32 *aState, PRUint32 *aExtraState);
|
2009-12-10 19:12:19 +00:00
|
|
|
|
2009-06-18 07:37:38 +00:00
|
|
|
virtual void SetRoleMapEntry(nsRoleMapEntry* aRoleMapEntry);
|
2008-11-04 03:37:46 +00:00
|
|
|
|
2010-06-08 16:39:58 +00:00
|
|
|
#ifdef DEBUG_ACCDOCMGR
|
2010-08-25 02:08:28 +00:00
|
|
|
virtual nsresult HandleAccEvent(AccEvent* aAccEvent);
|
2010-06-08 16:39:58 +00:00
|
|
|
#endif
|
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsIAccessibleText
|
|
|
|
NS_IMETHOD GetAssociatedEditor(nsIEditor **aEditor);
|
2007-08-14 16:25:24 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
// nsDocAccessible
|
2007-04-17 04:45:42 +00:00
|
|
|
|
2010-06-08 16:39:58 +00:00
|
|
|
/**
|
|
|
|
* Return true if associated DOM document was loaded and isn't unloading.
|
|
|
|
*/
|
|
|
|
PRBool IsContentLoaded() const
|
|
|
|
{
|
|
|
|
return mDocument && mDocument->IsVisible() &&
|
|
|
|
(mDocument->IsShowing() || mIsLoaded);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Marks as loaded, used for error pages as workaround since they do not
|
|
|
|
* receive pageshow event and as consequence nsIDocument::IsShowing() returns
|
|
|
|
* false.
|
|
|
|
*/
|
|
|
|
void MarkAsLoaded() { mIsLoaded = PR_TRUE; }
|
|
|
|
|
2010-09-17 03:23:17 +00:00
|
|
|
/**
|
|
|
|
* Return a native window handler or pointer depending on platform.
|
|
|
|
*/
|
|
|
|
virtual void* GetNativeWindow() const;
|
|
|
|
|
2010-09-09 14:44:56 +00:00
|
|
|
/**
|
|
|
|
* Return the parent document.
|
|
|
|
*/
|
|
|
|
nsDocAccessible* ParentDocument() const
|
|
|
|
{ return mParent ? mParent->GetDocAccessible() : nsnull; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the child document count.
|
|
|
|
*/
|
|
|
|
PRUint32 ChildDocumentCount() const
|
|
|
|
{ return mChildDocuments.Length(); }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the child document at the given index.
|
|
|
|
*/
|
|
|
|
nsDocAccessible* GetChildDocumentAt(PRUint32 aIndex) const
|
|
|
|
{ return mChildDocuments.SafeElementAt(aIndex, nsnull); }
|
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
/**
|
|
|
|
* Non-virtual method to fire a delayed event after a 0 length timeout.
|
|
|
|
*
|
2009-09-03 02:01:18 +00:00
|
|
|
* @param aEventType [in] the nsIAccessibleEvent event type
|
2009-06-25 02:08:53 +00:00
|
|
|
* @param aDOMNode [in] DOM node the accesible event should be fired for
|
|
|
|
* @param aAllowDupes [in] rule to process an event (see EEventRule constants)
|
|
|
|
*/
|
2010-06-11 08:23:18 +00:00
|
|
|
nsresult FireDelayedAccessibleEvent(PRUint32 aEventType, nsINode *aNode,
|
2010-08-25 02:08:28 +00:00
|
|
|
AccEvent::EEventRule aAllowDupes = AccEvent::eRemoveDupes,
|
2010-01-20 11:16:32 +00:00
|
|
|
EIsFromUserInput aIsFromUserInput = eAutoDetect);
|
2009-06-25 02:08:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Fire accessible event after timeout.
|
|
|
|
*
|
|
|
|
* @param aEvent [in] the event to fire
|
|
|
|
*/
|
2010-08-25 02:08:28 +00:00
|
|
|
nsresult FireDelayedAccessibleEvent(AccEvent* aEvent);
|
2007-04-17 04:45:42 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
/**
|
2010-10-21 04:16:10 +00:00
|
|
|
* Return the cached accessible by the given DOM node if it's in subtree of
|
|
|
|
* this document accessible or the document accessible itself, otherwise null.
|
2009-06-25 02:08:53 +00:00
|
|
|
*
|
2010-10-21 04:16:10 +00:00
|
|
|
* @return the accessible object
|
2009-06-25 02:08:53 +00:00
|
|
|
*/
|
2010-10-21 04:16:10 +00:00
|
|
|
nsAccessible* GetCachedAccessible(nsINode* aNode);
|
2009-06-25 02:08:53 +00:00
|
|
|
|
2010-02-11 13:56:01 +00:00
|
|
|
/**
|
2010-10-21 04:16:10 +00:00
|
|
|
* Return the cached accessible by the given unique ID within this document.
|
2010-02-11 13:56:01 +00:00
|
|
|
*
|
2010-10-21 04:16:10 +00:00
|
|
|
* @note the unique ID matches with the uniqueID() of nsAccessNode
|
2010-02-11 13:56:01 +00:00
|
|
|
*
|
|
|
|
* @param aUniqueID [in] the unique ID used to cache the node.
|
|
|
|
*/
|
2010-10-21 04:16:10 +00:00
|
|
|
nsAccessible* GetCachedAccessibleByUniqueID(void* aUniqueID)
|
|
|
|
{
|
|
|
|
return UniqueID() == aUniqueID ?
|
|
|
|
this : mAccessibleCache.GetWeak(aUniqueID);
|
|
|
|
}
|
2010-02-11 13:56:01 +00:00
|
|
|
|
2010-09-09 14:44:56 +00:00
|
|
|
/**
|
|
|
|
* Return the cached accessible by the given unique ID looking through
|
|
|
|
* this and nested documents.
|
|
|
|
*/
|
2010-10-21 04:16:10 +00:00
|
|
|
nsAccessible* GetCachedAccessibleByUniqueIDInSubtree(void* aUniqueID);
|
2010-09-09 14:44:56 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
/**
|
2010-06-12 04:04:35 +00:00
|
|
|
* Cache the accessible.
|
2009-06-25 02:08:53 +00:00
|
|
|
*
|
2010-06-12 04:04:35 +00:00
|
|
|
* @param aAccessible [in] accessible to cache
|
2010-02-21 00:56:35 +00:00
|
|
|
*
|
2010-06-12 04:04:35 +00:00
|
|
|
* @return true if accessible being cached, otherwise false
|
2009-06-25 02:08:53 +00:00
|
|
|
*/
|
2010-10-21 04:16:10 +00:00
|
|
|
PRBool CacheAccessible(nsAccessible *aAccessible);
|
2009-06-25 02:08:53 +00:00
|
|
|
|
2009-08-20 06:45:19 +00:00
|
|
|
/**
|
2010-10-21 04:16:10 +00:00
|
|
|
* Shutdown the accessible and remove it from document cache.
|
2009-08-20 06:45:19 +00:00
|
|
|
*/
|
2010-10-21 04:16:10 +00:00
|
|
|
void ShutdownAccessible(nsAccessible *aAccessible);
|
2009-08-20 06:45:19 +00:00
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
/**
|
2010-01-27 11:42:08 +00:00
|
|
|
* Process the event when the queue of pending events is untwisted. Fire
|
|
|
|
* accessible events as result of the processing.
|
2009-06-25 02:08:53 +00:00
|
|
|
*/
|
2010-08-25 02:08:28 +00:00
|
|
|
void ProcessPendingEvent(AccEvent* aEvent);
|
2009-06-25 02:08:53 +00:00
|
|
|
|
2010-10-21 04:16:10 +00:00
|
|
|
/**
|
|
|
|
* Update the accessible tree.
|
|
|
|
*/
|
|
|
|
void UpdateTree(nsIContent* aContainerNode, nsIContent* aStartChildNode,
|
|
|
|
nsIContent* aEndChildNode, PRBool aIsInsert);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Recreate an accessible, results in hide/show events pair.
|
|
|
|
*/
|
|
|
|
void RecreateAccessible(nsINode* aNode);
|
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
protected:
|
2007-01-31 15:42:55 +00:00
|
|
|
|
2003-07-31 08:09:39 +00:00
|
|
|
virtual void GetBoundsRect(nsRect& aRect, nsIFrame** aRelativeFrame);
|
2003-07-22 14:55:22 +00:00
|
|
|
virtual nsresult AddEventListeners();
|
|
|
|
virtual nsresult RemoveEventListeners();
|
2004-11-08 02:29:47 +00:00
|
|
|
void AddScrollListener();
|
|
|
|
void RemoveScrollListener();
|
2008-02-02 17:02:09 +00:00
|
|
|
|
2010-09-09 14:44:56 +00:00
|
|
|
/**
|
|
|
|
* Append the given document accessible to this document's child document
|
|
|
|
* accessibles.
|
|
|
|
*/
|
|
|
|
bool AppendChildDocument(nsDocAccessible* aChildDocument)
|
|
|
|
{
|
|
|
|
return mChildDocuments.AppendElement(aChildDocument);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove the given document accessible from this document's child document
|
|
|
|
* accessibles.
|
|
|
|
*/
|
|
|
|
void RemoveChildDocument(nsDocAccessible* aChildDocument)
|
|
|
|
{
|
|
|
|
mChildDocuments.RemoveElement(aChildDocument);
|
|
|
|
}
|
|
|
|
|
2003-04-15 08:45:55 +00:00
|
|
|
static void ScrollTimerCallback(nsITimer *aTimer, void *aClosure);
|
2006-06-21 13:29:10 +00:00
|
|
|
|
2007-04-17 04:45:42 +00:00
|
|
|
/**
|
2007-09-18 21:36:41 +00:00
|
|
|
* Fires accessible events when attribute is changed.
|
|
|
|
*
|
|
|
|
* @param aContent - node that attribute is changed for
|
|
|
|
* @param aNameSpaceID - namespace of changed attribute
|
|
|
|
* @param aAttribute - changed attribute
|
|
|
|
*/
|
|
|
|
void AttributeChangedImpl(nsIContent* aContent, PRInt32 aNameSpaceID, nsIAtom* aAttribute);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Fires accessible events when ARIA attribute is changed.
|
2007-04-17 04:45:42 +00:00
|
|
|
*
|
|
|
|
* @param aContent - node that attribute is changed for
|
|
|
|
* @param aAttribute - changed attribute
|
|
|
|
*/
|
|
|
|
void ARIAAttributeChanged(nsIContent* aContent, nsIAtom* aAttribute);
|
|
|
|
|
2007-07-25 11:54:15 +00:00
|
|
|
/**
|
2007-09-05 08:22:17 +00:00
|
|
|
* Fire text changed event for character data changed. The method is used
|
|
|
|
* from nsIMutationObserver methods.
|
|
|
|
*
|
|
|
|
* @param aContent the text node holding changed data
|
|
|
|
* @param aInfo info structure describing how the data was changed
|
|
|
|
* @param aIsInserted the flag pointed whether removed or inserted
|
|
|
|
* characters should be cause of event
|
2007-07-25 11:54:15 +00:00
|
|
|
*/
|
2007-09-05 08:22:17 +00:00
|
|
|
void FireTextChangeEventForText(nsIContent *aContent,
|
|
|
|
CharacterDataChangeInfo* aInfo,
|
|
|
|
PRBool aIsInserted);
|
2007-07-25 11:54:15 +00:00
|
|
|
|
2009-09-09 09:03:14 +00:00
|
|
|
/**
|
|
|
|
* Used to define should the event be fired on a delay.
|
|
|
|
*/
|
|
|
|
enum EEventFiringType {
|
|
|
|
eNormalEvent,
|
|
|
|
eDelayedEvent
|
|
|
|
};
|
|
|
|
|
2010-06-12 04:04:24 +00:00
|
|
|
/**
|
|
|
|
* Fire a value change event for the the given accessible if it is a text
|
|
|
|
* field (has a ROLE_ENTRY).
|
|
|
|
*/
|
|
|
|
void FireValueChangeForTextFields(nsAccessible *aAccessible);
|
2008-03-20 01:58:11 +00:00
|
|
|
|
2010-10-21 04:16:10 +00:00
|
|
|
/**
|
|
|
|
* Helper for UpdateTree() method. Go down to DOM subtree and updates
|
|
|
|
* accessible tree. Return one of these flags.
|
|
|
|
*/
|
|
|
|
enum EUpdateTreeFlags {
|
|
|
|
eNoAccessible = 0,
|
|
|
|
eAccessible = 1,
|
|
|
|
eAlertAccessible = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
PRUint32 UpdateTreeInternal(nsAccessible* aContainer,
|
|
|
|
nsIContent* aStartNode,
|
|
|
|
nsIContent* aEndNode,
|
|
|
|
PRBool aIsInsert,
|
|
|
|
PRBool aFireEvents,
|
|
|
|
EIsFromUserInput aFromUserInput);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove accessibles in subtree from node to accessible map.
|
|
|
|
*/
|
|
|
|
void UncacheChildrenInSubtree(nsAccessible* aRoot);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Shutdown any cached accessible in the subtree.
|
|
|
|
*
|
|
|
|
* @param aAccessible [in] the root of the subrtee to invalidate accessible
|
|
|
|
* child/parent refs in
|
|
|
|
*/
|
|
|
|
void ShutdownChildrenInSubtree(nsAccessible *aAccessible);
|
|
|
|
|
2010-06-12 04:04:35 +00:00
|
|
|
/**
|
|
|
|
* Cache of accessibles within this document accessible.
|
|
|
|
*/
|
|
|
|
nsAccessibleHashtable mAccessibleCache;
|
2010-10-21 04:16:10 +00:00
|
|
|
NodeToAccessibleMap mNodeToAccessibleMap;
|
2010-06-12 04:04:35 +00:00
|
|
|
|
2003-04-15 08:45:55 +00:00
|
|
|
nsCOMPtr<nsIDocument> mDocument;
|
|
|
|
nsCOMPtr<nsITimer> mScrollWatchTimer;
|
|
|
|
PRUint16 mScrollPositionChangedTicks; // Used for tracking scroll events
|
2006-09-29 05:45:07 +00:00
|
|
|
|
|
|
|
protected:
|
2009-09-07 16:46:56 +00:00
|
|
|
|
2010-01-27 11:42:08 +00:00
|
|
|
nsRefPtr<nsAccEventQueue> mEventQueue;
|
2009-09-07 16:46:56 +00:00
|
|
|
|
2010-06-08 16:39:58 +00:00
|
|
|
/**
|
|
|
|
* Specifies if the document was loaded, used for error pages only.
|
|
|
|
*/
|
|
|
|
PRPackedBool mIsLoaded;
|
|
|
|
|
2007-09-18 21:36:41 +00:00
|
|
|
static PRUint32 gLastFocusedAccessiblesState;
|
2008-02-09 02:28:01 +00:00
|
|
|
static nsIAtom *gLastFocusedFrameType;
|
2010-09-09 14:44:56 +00:00
|
|
|
|
|
|
|
nsTArray<nsRefPtr<nsDocAccessible> > mChildDocuments;
|
2003-04-01 22:18:29 +00:00
|
|
|
};
|
|
|
|
|
2009-06-25 02:08:53 +00:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsDocAccessible,
|
|
|
|
NS_DOCACCESSIBLE_IMPL_CID)
|
|
|
|
|
2003-04-01 22:18:29 +00:00
|
|
|
#endif
|