2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-04-05 07:27:37 -07:00
|
|
|
#ifndef MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
|
|
|
|
#define MOZILLA_A11Y_OUTERDOCACCESSIBLE_H_
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
#include "AccessibleWrap.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-04-05 07:27:37 -07:00
|
|
|
namespace mozilla {
|
|
|
|
namespace a11y {
|
|
|
|
|
2009-12-10 11:12:19 -08:00
|
|
|
/**
|
|
|
|
* Used for <browser>, <frame>, <iframe>, <page> or editor> elements.
|
|
|
|
*
|
2012-04-05 07:27:37 -07:00
|
|
|
* In these variable names, "outer" relates to the OuterDocAccessible as
|
2012-05-27 02:01:40 -07:00
|
|
|
* opposed to the DocAccessibleWrap which is "inner". The outer node is
|
2009-12-10 11:12:19 -08:00
|
|
|
* a something like tags listed above, whereas the inner node corresponds to
|
|
|
|
* the inner document root.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
class OuterDocAccessible : public AccessibleWrap
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
2008-11-03 19:37:46 -08:00
|
|
|
public:
|
2012-05-27 02:01:40 -07:00
|
|
|
OuterDocAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
2012-04-05 07:27:37 -07:00
|
|
|
virtual ~OuterDocAccessible();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2010-06-08 09:39:58 -07:00
|
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
|
|
|
2008-11-03 19:37:46 -08:00
|
|
|
// nsIAccessible
|
2012-08-22 08:56:38 -07:00
|
|
|
NS_IMETHOD GetActionName(uint8_t aIndex, nsAString& aName);
|
|
|
|
NS_IMETHOD GetActionDescription(uint8_t aIndex, nsAString& aDescription);
|
|
|
|
NS_IMETHOD DoAction(uint8_t aIndex);
|
2008-11-03 19:37:46 -08:00
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
// Accessible
|
2013-10-28 20:30:55 -07:00
|
|
|
virtual void Shutdown();
|
2012-01-11 19:07:35 -08:00
|
|
|
virtual mozilla::a11y::role NativeRole();
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual Accessible* ChildAtPoint(int32_t aX, int32_t aY,
|
2012-05-28 18:18:45 -07:00
|
|
|
EWhichChildAtPoint aWhichChild);
|
2008-11-03 19:37:46 -08:00
|
|
|
|
2010-06-08 09:39:58 -07:00
|
|
|
virtual void InvalidateChildren();
|
2013-03-13 21:53:28 -07:00
|
|
|
virtual bool InsertChildAt(uint32_t aIdx, Accessible* aChild) MOZ_OVERRIDE;
|
2012-05-28 18:18:45 -07:00
|
|
|
virtual bool RemoveChild(Accessible* aAccessible);
|
2010-06-08 09:39:58 -07:00
|
|
|
|
2011-06-05 12:35:43 -07:00
|
|
|
// ActionAccessible
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual uint8_t ActionCount();
|
2011-06-05 12:35:43 -07:00
|
|
|
|
2008-11-03 19:37:46 -08:00
|
|
|
protected:
|
2012-05-28 18:18:45 -07:00
|
|
|
// Accessible
|
2009-12-10 11:12:19 -08:00
|
|
|
virtual void CacheChildren();
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
2012-04-05 07:27:37 -07:00
|
|
|
} // namespace a11y
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif
|