other-licenses/ia2/AccessibleAction.idl
Not scriptableIUnknown
Last changed in Gecko 1.9 (Firefox 3)Every accessible object that can be manipulated via the native GUI beyond the methods available either in the MSAA IAccessible
interface or in the set of IAccessible2
interfaces (other than this IAccessibleAction
interface) should support the IAccessibleAction
interface in order to provide Assistive Technology access to all the actions that can be performed by the object. Each action can be performed or queried for a name, description or associated key bindings. Actions are needed more for ATs that assist the mobility impaired, such as on-screen keyboards and voice command software. By providing actions directly, the AT can present them to the user without the user having to perform the extra steps to navigate a context menu. The first action should be equivalent to the MSAA default action. If there is only one action, IAccessibleAction
should also be implemented.
[propget] HRESULT description([in] long actionIndex, [out] BSTR description ); |
HRESULT doAction([in] long actionIndex ); |
[propget] HRESULT keyBinding([in] long actionIndex, [in] long nMaxBindings, [out, size_is(,nMaxBindings), length_is(, nBindings)] BSTR keyBindings, [out] long nBindings ); |
[propget] HRESULT localizedName([in] long actionIndex, [out] BSTR localizedName ); |
HRESULT nActions([out,retval] long nActions ); |
[propget] HRESULT name([in] long actionIndex, [out] BSTR name ); |
Returns a description of the specified action of the object.
[propget] HRESULT description( [in] long actionIndex, [out] BSTR description );
actionIndex
description
E_INVALIDARG if bad [in] passed, [out] value is null
. S_FALSE if there is nothing to return, [out] value is null
. S_OK.
Performs the specified Action on the object.
HRESULT doAction( [in] long actionIndex );
actionIndex
E_INVALIDARG if bad [in] passed. S_OK.
Returns an array of BSTRs describing one or more key bindings, if there are any, associated with the specified action. The returned strings are the localized human readable key sequences to be used to activate each action, e.g. "Ctrl+Shift+D". Since these key sequences are to be used when the object has focus, they are like mnemonics (access keys), and not like shortcut (accelerator) keys. There is no need to implement this method for single action controls since that would be redundant with the standard MSAA programming practice of getting the mnemonic from get_accKeyboardShortcut. An AT such as an On Screen Keyboard might not expose these bindings but provide alternative means of activation.
[propget] HRESULT keyBinding( [in] long actionIndex, [in] long nMaxBindings, [out, size_is(,nMaxBindings), length_is(, nBindings)] BSTR keyBindings, [out] long nBindings );
actionIndex
nMaxBindings
keyBindings
nBindings
E_INVALIDARG if bad [in] passed, [out] values are null
and 0 respectively. S_FALSE if there are no relations, [out] values are null
and 0 respectively. S_OK.
Returns the localized name of specified action.
[propget] HRESULT localizedName( [in] long actionIndex, [out] BSTR localizedName );
actionIndex
localizedName
E_INVALIDARG if bad [in] passed, [out] value is null
. S_FALSE if there is nothing to return, [out] value is null
. S_OK.
Returns the number of accessible actions available in this object. If there are more than one, the first one is considered the "default" action of the object.
HRESULT nActions( [out] long nActions );
nActions
S_OK.
Returns the non-localized name of the specified action.
[propget] HRESULT name( [in] long actionIndex, [out] BSTR name );
actionIndex
name
E_INVALIDARG if bad [in] passed, [out] value is null
. S_FALSE if there is nothing to return, [out] value is null
. S_OK.