Closed Bug 371750 Opened 17 years ago Closed 17 years ago

make nsIAccessible::keyBinding work for several actions

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: surkov, Assigned: surkov)

References

Details

(Keywords: access)

Attachments

(1 file)

IAccessibleAction defines this method as

Returns an array of BSTRs describing one or more key bindings, if there
   are any, associated with the specified action.

   Note: the client allocates and passes in an array of pointers.  The server
   allocates the BSTRs and passes back one or more pointers to these BSTRs into
   the array of pointers allocated by the client.  The client is responsible 
   for deallocating the BSTRs.

   @param [in] actionIndex
    This index specifies the action of which to return the key bindings.
   @param [in] nMaxBinding
    The maximum number of keybindings requested, i.e. the size of the array 
	allocated to hold the results.
   @param [out] keyBinding
    An array of BSTRs, one for each key binding.
   @param [out] nBinding
    The actual number of key bindings returned.
  */
  [propget] HRESULT keyBinding
    (
     [in] long actionIndex,
     [in] long nMaxBinding,
     [out, size_is(,nMaxBinding), length_is(,*nBinding)] BSTR **keyBinding,
	 [out, retval] long *nBinding
    );

We should have something similiar for nsIAccessible.
The keybinding for the element in general is probably the same as the keybinding for action # 0

Action 0 corresponds to the "default action" in MSAA. The default action is what happens when you click on an element.
Keywords: access
Attached patch patchSplinter Review
Aaron, whom can I ask to review/check atk part?
Attachment #257021 - Flags: review?(aaronleventhal)
Comment on attachment 257021 [details] [diff] [review]
patch

Ginn, could you look this over? (Especially the ATK changes).
Attachment #257021 - Flags: review?(ginn.chen)
Attachment #257021 - Flags: review?(aaronleventhal)
Attachment #257021 - Flags: review+
Comment on attachment 257021 [details] [diff] [review]
patch

excellent
Attachment #257021 - Flags: review?(ginn.chen) → review+
Checked in on trunk
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: