2007-06-01 20:01:38 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
|
|
|
*/
|
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/. */
|
2012-05-29 17:51:00 -07:00
|
|
|
|
2012-04-25 04:29:40 -07:00
|
|
|
#include "ApplicationAccessible.h"
|
2007-06-01 20:01:38 -07:00
|
|
|
|
2009-12-10 11:12:19 -08:00
|
|
|
#include "nsAccessibilityService.h"
|
2010-04-26 23:52:03 -07:00
|
|
|
#include "nsAccUtils.h"
|
2012-01-11 19:07:35 -08:00
|
|
|
#include "Relation.h"
|
|
|
|
#include "Role.h"
|
|
|
|
#include "States.h"
|
2009-12-10 11:12:19 -08:00
|
|
|
|
2007-06-01 20:01:38 -07:00
|
|
|
#include "nsIComponentManager.h"
|
2010-04-22 20:46:37 -07:00
|
|
|
#include "nsIDOMDocument.h"
|
|
|
|
#include "nsIDOMWindow.h"
|
|
|
|
#include "nsIWindowMediator.h"
|
2007-06-01 20:01:38 -07:00
|
|
|
#include "nsServiceManagerUtils.h"
|
2010-05-14 02:24:41 -07:00
|
|
|
#include "mozilla/Services.h"
|
2012-08-01 11:31:10 -07:00
|
|
|
#include "nsIStringBundle.h"
|
2007-06-01 20:01:38 -07:00
|
|
|
|
2011-07-27 05:43:01 -07:00
|
|
|
using namespace mozilla::a11y;
|
|
|
|
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::ApplicationAccessible() :
|
2012-07-30 07:20:58 -07:00
|
|
|
AccessibleWrap(nullptr, nullptr)
|
2007-06-01 20:01:38 -07:00
|
|
|
{
|
2012-12-17 21:22:26 -08:00
|
|
|
mType = eApplicationType;
|
2012-11-20 07:33:30 -08:00
|
|
|
mAppInfo = do_GetService("@mozilla.org/xre/app-info;1");
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
2008-08-06 05:19:56 -07:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2007-06-01 20:01:38 -07:00
|
|
|
// nsISupports
|
|
|
|
|
2014-04-27 00:06:00 -07:00
|
|
|
NS_IMPL_ISUPPORTS_INHERITED(ApplicationAccessible, Accessible,
|
|
|
|
nsIAccessibleApplication)
|
2008-08-06 05:19:56 -07:00
|
|
|
|
2010-04-22 20:45:16 -07:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2010-06-11 01:23:18 -07:00
|
|
|
// nsIAccessible
|
2010-04-22 20:45:16 -07:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetParent(nsIAccessible** aAccessible)
|
2010-04-22 20:45:16 -07:00
|
|
|
{
|
2010-06-11 01:23:18 -07:00
|
|
|
NS_ENSURE_ARG_POINTER(aAccessible);
|
2012-07-30 07:20:58 -07:00
|
|
|
*aAccessible = nullptr;
|
2010-06-11 01:23:18 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
2010-04-22 20:45:16 -07:00
|
|
|
|
2010-06-11 01:23:18 -07:00
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetNextSibling(nsIAccessible** aNextSibling)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
NS_ENSURE_ARG_POINTER(aNextSibling);
|
2012-07-30 07:20:58 -07:00
|
|
|
*aNextSibling = nullptr;
|
2010-04-22 20:45:16 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2010-06-11 01:23:18 -07:00
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetPreviousSibling(nsIAccessible** aPreviousSibling)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
NS_ENSURE_ARG_POINTER(aPreviousSibling);
|
2012-07-30 07:20:58 -07:00
|
|
|
*aPreviousSibling = nullptr;
|
2010-06-11 01:23:18 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
2007-06-01 20:01:38 -07:00
|
|
|
|
2012-04-30 20:08:31 -07:00
|
|
|
ENameValueFlag
|
|
|
|
ApplicationAccessible::Name(nsString& aName)
|
2007-06-01 20:01:38 -07:00
|
|
|
{
|
2008-08-24 09:45:56 -07:00
|
|
|
aName.Truncate();
|
|
|
|
|
2007-06-01 20:01:38 -07:00
|
|
|
nsCOMPtr<nsIStringBundleService> bundleService =
|
2010-05-14 02:24:41 -07:00
|
|
|
mozilla::services::GetStringBundleService();
|
2007-06-01 20:01:38 -07:00
|
|
|
|
|
|
|
NS_ASSERTION(bundleService, "String bundle service must be present!");
|
2012-04-30 20:08:31 -07:00
|
|
|
if (!bundleService)
|
|
|
|
return eNameOK;
|
2007-06-01 20:01:38 -07:00
|
|
|
|
|
|
|
nsCOMPtr<nsIStringBundle> bundle;
|
2008-10-08 05:58:46 -07:00
|
|
|
nsresult rv = bundleService->CreateBundle("chrome://branding/locale/brand.properties",
|
|
|
|
getter_AddRefs(bundle));
|
2012-04-30 20:08:31 -07:00
|
|
|
if (NS_FAILED(rv))
|
|
|
|
return eNameOK;
|
2007-06-01 20:01:38 -07:00
|
|
|
|
|
|
|
nsXPIDLString appName;
|
2013-12-12 17:50:01 -08:00
|
|
|
rv = bundle->GetStringFromName(MOZ_UTF16("brandShortName"),
|
2008-10-08 05:58:46 -07:00
|
|
|
getter_Copies(appName));
|
|
|
|
if (NS_FAILED(rv) || appName.IsEmpty()) {
|
|
|
|
NS_WARNING("brandShortName not found, using default app name");
|
|
|
|
appName.AssignLiteral("Gecko based application");
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
aName.Assign(appName);
|
2012-04-30 20:08:31 -07:00
|
|
|
return eNameOK;
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
2012-04-09 02:48:41 -07:00
|
|
|
void
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::Description(nsString& aDescription)
|
2007-06-01 20:01:38 -07:00
|
|
|
{
|
2012-04-09 02:48:41 -07:00
|
|
|
aDescription.Truncate();
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
2011-04-23 06:14:05 -07:00
|
|
|
void
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::Value(nsString& aValue)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
2012-04-09 02:48:41 -07:00
|
|
|
aValue.Truncate();
|
2010-06-11 01:23:18 -07:00
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint64_t
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::State()
|
2007-06-01 20:01:38 -07:00
|
|
|
{
|
2011-04-11 23:18:42 -07:00
|
|
|
return IsDefunct() ? states::DEFUNCT : 0;
|
2010-06-11 01:23:18 -07:00
|
|
|
}
|
2009-12-10 11:12:19 -08:00
|
|
|
|
2012-10-19 00:15:23 -07:00
|
|
|
already_AddRefed<nsIPersistentProperties>
|
|
|
|
ApplicationAccessible::NativeAttributes()
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
2012-10-19 00:15:23 -07:00
|
|
|
return nullptr;
|
2010-06-11 01:23:18 -07:00
|
|
|
}
|
2007-06-01 20:01:38 -07:00
|
|
|
|
2012-05-29 17:51:00 -07:00
|
|
|
GroupPos
|
|
|
|
ApplicationAccessible::GroupPosition()
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
2012-05-29 17:51:00 -07:00
|
|
|
return GroupPos();
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
Accessible*
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::ChildAtPoint(int32_t aX, int32_t aY,
|
2012-04-25 04:29:40 -07:00
|
|
|
EWhichChildAtPoint aWhichChild)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2010-06-11 01:23:18 -07:00
|
|
|
}
|
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
Accessible*
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::FocusedChild()
|
2011-08-09 02:31:31 -07:00
|
|
|
{
|
2012-05-28 18:18:45 -07:00
|
|
|
Accessible* focus = FocusMgr()->FocusedAccessible();
|
2011-09-27 18:46:11 -07:00
|
|
|
if (focus && focus->Parent() == this)
|
|
|
|
return focus;
|
|
|
|
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2011-08-09 02:31:31 -07:00
|
|
|
}
|
|
|
|
|
2011-08-09 18:44:00 -07:00
|
|
|
Relation
|
2013-10-19 11:19:50 -07:00
|
|
|
ApplicationAccessible::RelationByType(RelationType aRelationType)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
2011-08-09 18:44:00 -07:00
|
|
|
return Relation();
|
2010-06-11 01:23:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::GetBounds(int32_t* aX, int32_t* aY,
|
|
|
|
int32_t* aWidth, int32_t* aHeight)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
NS_ENSURE_ARG_POINTER(aX);
|
|
|
|
*aX = 0;
|
|
|
|
NS_ENSURE_ARG_POINTER(aY);
|
|
|
|
*aY = 0;
|
|
|
|
NS_ENSURE_ARG_POINTER(aWidth);
|
|
|
|
*aWidth = 0;
|
|
|
|
NS_ENSURE_ARG_POINTER(aHeight);
|
|
|
|
*aHeight = 0;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::SetSelected(bool aIsSelected)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::TakeSelection()
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::TakeFocus()
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint8_t
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::ActionCount()
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
2011-06-05 12:35:43 -07:00
|
|
|
return 0;
|
2010-06-11 01:23:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::GetActionName(uint8_t aIndex, nsAString& aName)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
aName.Truncate();
|
|
|
|
return NS_ERROR_INVALID_ARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::GetActionDescription(uint8_t aIndex,
|
2012-04-25 04:29:40 -07:00
|
|
|
nsAString& aDescription)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
aDescription.Truncate();
|
|
|
|
return NS_ERROR_INVALID_ARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::DoAction(uint8_t aIndex)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
return NS_OK;
|
2009-12-10 11:12:19 -08:00
|
|
|
}
|
2009-11-19 08:35:38 -08:00
|
|
|
|
2010-03-18 11:49:39 -07:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// nsIAccessibleApplication
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetAppName(nsAString& aName)
|
2010-03-18 11:49:39 -07:00
|
|
|
{
|
|
|
|
aName.Truncate();
|
|
|
|
|
|
|
|
if (!mAppInfo)
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
|
2012-09-01 19:35:17 -07:00
|
|
|
nsAutoCString cname;
|
2010-03-18 11:49:39 -07:00
|
|
|
nsresult rv = mAppInfo->GetName(cname);
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
|
|
|
AppendUTF8toUTF16(cname, aName);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetAppVersion(nsAString& aVersion)
|
2010-03-18 11:49:39 -07:00
|
|
|
{
|
|
|
|
aVersion.Truncate();
|
|
|
|
|
|
|
|
if (!mAppInfo)
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
|
2012-09-01 19:35:17 -07:00
|
|
|
nsAutoCString cversion;
|
2010-03-18 11:49:39 -07:00
|
|
|
nsresult rv = mAppInfo->GetVersion(cversion);
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
|
|
|
AppendUTF8toUTF16(cversion, aVersion);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetPlatformName(nsAString& aName)
|
2010-03-18 11:49:39 -07:00
|
|
|
{
|
|
|
|
aName.AssignLiteral("Gecko");
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetPlatformVersion(nsAString& aVersion)
|
2010-03-18 11:49:39 -07:00
|
|
|
{
|
|
|
|
aVersion.Truncate();
|
|
|
|
|
|
|
|
if (!mAppInfo)
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
|
2012-09-01 19:35:17 -07:00
|
|
|
nsAutoCString cversion;
|
2010-03-18 11:49:39 -07:00
|
|
|
nsresult rv = mAppInfo->GetPlatformVersion(cversion);
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
|
|
|
AppendUTF8toUTF16(cversion, aVersion);
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2009-12-10 11:12:19 -08:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2013-10-28 20:30:55 -07:00
|
|
|
// Accessible public methods
|
2009-11-19 08:35:38 -08:00
|
|
|
|
2010-06-11 21:04:35 -07:00
|
|
|
void
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::Shutdown()
|
2010-03-18 11:49:39 -07:00
|
|
|
{
|
2012-07-30 07:20:58 -07:00
|
|
|
mAppInfo = nullptr;
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
2011-04-09 16:38:06 -07:00
|
|
|
void
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::ApplyARIAState(uint64_t* aState) const
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-01-11 19:07:35 -08:00
|
|
|
role
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::NativeRole()
|
2009-12-10 11:12:19 -08:00
|
|
|
{
|
2012-01-11 19:07:35 -08:00
|
|
|
return roles::APP_ROOT;
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
uint64_t
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::NativeState()
|
2008-03-29 20:24:02 -07:00
|
|
|
{
|
2011-04-11 23:18:42 -07:00
|
|
|
return 0;
|
2009-11-19 06:44:59 -08:00
|
|
|
}
|
2008-03-29 20:24:02 -07:00
|
|
|
|
2009-12-10 11:12:19 -08:00
|
|
|
void
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::InvalidateChildren()
|
2009-12-10 11:12:19 -08:00
|
|
|
{
|
2010-06-25 02:50:23 -07:00
|
|
|
// Do nothing because application children are kept updated by AppendChild()
|
|
|
|
// and RemoveChild() method calls.
|
2009-11-19 08:35:38 -08:00
|
|
|
}
|
2009-11-19 06:44:59 -08:00
|
|
|
|
2011-07-19 06:12:40 -07:00
|
|
|
KeyBinding
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::AccessKey() const
|
2011-07-19 06:12:40 -07:00
|
|
|
{
|
|
|
|
return KeyBinding();
|
|
|
|
}
|
|
|
|
|
2009-12-10 11:12:19 -08:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2012-05-28 18:18:45 -07:00
|
|
|
// Accessible protected methods
|
2009-12-10 11:12:19 -08:00
|
|
|
|
2007-06-01 20:01:38 -07:00
|
|
|
void
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::CacheChildren()
|
2007-06-01 20:01:38 -07:00
|
|
|
{
|
2010-04-22 20:46:37 -07:00
|
|
|
// CacheChildren is called only once for application accessible when its
|
|
|
|
// children are requested because empty InvalidateChldren() prevents its
|
|
|
|
// repeated calls.
|
|
|
|
|
2010-06-25 02:50:23 -07:00
|
|
|
// Basically children are kept updated by Append/RemoveChild method calls.
|
|
|
|
// However if there are open windows before accessibility was started
|
2010-04-22 20:46:37 -07:00
|
|
|
// then we need to make sure root accessibles for open windows are created so
|
2010-04-23 18:51:10 -07:00
|
|
|
// that all root accessibles are stored in application accessible children
|
2010-04-22 20:46:37 -07:00
|
|
|
// array.
|
|
|
|
|
|
|
|
nsCOMPtr<nsIWindowMediator> windowMediator =
|
|
|
|
do_GetService(NS_WINDOWMEDIATOR_CONTRACTID);
|
|
|
|
|
|
|
|
nsCOMPtr<nsISimpleEnumerator> windowEnumerator;
|
2012-07-30 07:20:58 -07:00
|
|
|
nsresult rv = windowMediator->GetEnumerator(nullptr,
|
2010-04-22 20:46:37 -07:00
|
|
|
getter_AddRefs(windowEnumerator));
|
|
|
|
if (NS_FAILED(rv))
|
|
|
|
return;
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool hasMore = false;
|
2010-04-22 20:46:37 -07:00
|
|
|
windowEnumerator->HasMoreElements(&hasMore);
|
|
|
|
while (hasMore) {
|
|
|
|
nsCOMPtr<nsISupports> window;
|
|
|
|
windowEnumerator->GetNext(getter_AddRefs(window));
|
|
|
|
nsCOMPtr<nsIDOMWindow> DOMWindow = do_QueryInterface(window);
|
|
|
|
if (DOMWindow) {
|
|
|
|
nsCOMPtr<nsIDOMDocument> DOMDocument;
|
|
|
|
DOMWindow->GetDocument(getter_AddRefs(DOMDocument));
|
|
|
|
if (DOMDocument) {
|
2010-06-28 06:22:49 -07:00
|
|
|
nsCOMPtr<nsIDocument> docNode(do_QueryInterface(DOMDocument));
|
|
|
|
GetAccService()->GetDocAccessible(docNode); // ensure creation
|
2010-04-22 20:46:37 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
windowEnumerator->HasMoreElements(&hasMore);
|
|
|
|
}
|
2009-12-10 11:12:19 -08:00
|
|
|
}
|
|
|
|
|
2012-05-28 18:18:45 -07:00
|
|
|
Accessible*
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::GetSiblingAtOffset(int32_t aOffset,
|
2012-04-25 04:29:40 -07:00
|
|
|
nsresult* aError) const
|
2009-12-10 11:12:19 -08:00
|
|
|
{
|
|
|
|
if (aError)
|
|
|
|
*aError = NS_OK; // fail peacefully
|
|
|
|
|
2012-07-30 07:20:58 -07:00
|
|
|
return nullptr;
|
2007-06-01 20:01:38 -07:00
|
|
|
}
|
2010-06-11 01:23:18 -07:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
2012-02-07 05:18:33 -08:00
|
|
|
// nsIAccessible
|
2010-06-11 01:23:18 -07:00
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetRootDocument(nsIAccessibleDocument** aRootDocument)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
NS_ENSURE_ARG_POINTER(aRootDocument);
|
2012-07-30 07:20:58 -07:00
|
|
|
*aRootDocument = nullptr;
|
2010-06-11 01:23:18 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::ScrollTo(uint32_t aScrollType)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-08-22 08:56:38 -07:00
|
|
|
ApplicationAccessible::ScrollToPoint(uint32_t aCoordinateType,
|
|
|
|
int32_t aX, int32_t aY)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
2012-04-25 04:29:40 -07:00
|
|
|
ApplicationAccessible::GetLanguage(nsAString& aLanguage)
|
2010-06-11 01:23:18 -07:00
|
|
|
{
|
|
|
|
aLanguage.Truncate();
|
|
|
|
return NS_OK;
|
|
|
|
}
|
2010-10-20 21:16:10 -07:00
|
|
|
|