Bug 1624729 - Add a nativeInterface attribute to nsIAccessible. r=yzen

Differential Revision: https://phabricator.services.mozilla.com/D68122

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eitan Isaacson 2020-03-27 00:53:31 +00:00
Родитель 2eaf9ee039
Коммит 325f958e21
3 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -172,6 +172,11 @@ interface nsIAccessible : nsISupports
*/
readonly attribute nsIPersistentProperties attributes;
/**
* Platform specific interface for accessible
*/
readonly attribute nsISupports nativeInterface;
/**
* Returns grouping information. Used for tree items, list items, tab panel
* labels, radio buttons, etc. Also used for collectons of non-text objects.

Просмотреть файл

@ -383,6 +383,11 @@ xpcAccessible::GetAttributes(nsIPersistentProperties** aAttributes) {
return NS_OK;
}
NS_IMETHODIMP
xpcAccessible::GetNativeInterface(nsISupports** aNativeInterface) {
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
xpcAccessible::GetBounds(int32_t* aX, int32_t* aY, int32_t* aWidth,
int32_t* aHeight) {

Просмотреть файл

@ -52,6 +52,9 @@ class xpcAccessible : public nsIAccessible {
NS_IMETHOD GetKeyboardShortcut(nsAString& aKeyBinding) final;
NS_IMETHOD GetAttributes(nsIPersistentProperties** aAttributes) final;
NS_IMETHOD GetNativeInterface(nsISupports** aNativeInterface) final;
NS_IMETHOD GetBounds(int32_t* aX, int32_t* aY, int32_t* aWidth,
int32_t* aHeight) final;
NS_IMETHOD GetBoundsInCSSPixels(int32_t* aX, int32_t* aY, int32_t* aWidth,