2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
|
|
|
*
|
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is
|
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 2003
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
|
|
|
*
|
2007-04-04 01:37:23 -07:00
|
|
|
* Contributors:
|
|
|
|
* Aaron Leventhal <aleventh@us.ibm.com> (original author)
|
|
|
|
* Alexander Surkov <surkov.alexander@gmail.com>
|
2007-03-22 10:30:00 -07:00
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
|
|
|
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIAccessible;
|
|
|
|
interface nsIAccessibleDocument;
|
|
|
|
interface nsIDOMNode;
|
|
|
|
|
|
|
|
%{C++
|
|
|
|
#define NS_ACCESSIBLE_EVENT_TOPIC "accessible-event"
|
|
|
|
%}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* An interface for accessibility events listened to
|
|
|
|
* by in-process accessibility clients, which can be used
|
|
|
|
* to find out how to get accessibility and DOM interfaces for
|
|
|
|
* the event and its target. To listen to in-process accessibility invents,
|
|
|
|
* make your object an nsIObserver, and listen for accessible-event by
|
|
|
|
* using code something like this:
|
|
|
|
* nsCOMPtr<nsIObserverService> observerService =
|
|
|
|
* do_GetService("@mozilla.org/observer-service;1", &rv);
|
|
|
|
* if (NS_SUCCEEDED(rv))
|
|
|
|
* rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);
|
|
|
|
*/
|
2010-08-24 19:08:28 -07:00
|
|
|
[scriptable, uuid(fd1378c5-c606-4a5e-a321-8e7fc107e5cf)]
|
2007-03-22 10:30:00 -07:00
|
|
|
interface nsIAccessibleEvent : nsISupports
|
|
|
|
{
|
2007-04-04 01:37:23 -07:00
|
|
|
/**
|
|
|
|
* An object has been created.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SHOW = 0x0001;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object has been destroyed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_HIDE = 0x0002;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
2009-09-09 02:03:14 -07:00
|
|
|
* An object's children have changed
|
2007-04-04 01:37:23 -07:00
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_REORDER = 0x0003;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The active descendant of a component has changed. The active descendant
|
|
|
|
* is used in objects with transient children.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_ACTIVE_DECENDENT_CHANGED = 0x0004;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object has received the keyboard focus.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_FOCUS = 0x0005;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's state has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_STATE_CHANGE = 0x0006;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object has changed location, shape, or size.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_LOCATION_CHANGE = 0x0007;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's Name property has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_NAME_CHANGE = 0x0008;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's Description property has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_DESCRIPTION_CHANGE = 0x0009;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's Value property has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_VALUE_CHANGE = 0x000A;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's help has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_HELP_CHANGE = 0x000B;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's default action has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_DEFACTION_CHANGE = 0x000C;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's action has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_ACTION_CHANGE = 0x000D;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's keyboard shortcut has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_ACCELERATOR_CHANGE = 0x000E;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The selection within a container object has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SELECTION = 0x000F;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An item within a container object has been added to the selection.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SELECTION_ADD = 0x0010;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An item within a container object has been removed from the selection.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SELECTION_REMOVE = 0x0011;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Numerous selection changes have occurred within a container object.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SELECTION_WITHIN = 0x0012;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An alert has been generated. Server applications send this event when a
|
|
|
|
* user needs to know that a user interface element has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_ALERT = 0x0013;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The foreground window has changed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_FOREGROUND = 0x0014;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A menu item on the menu bar has been selected.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MENU_START = 0x0015;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A menu from the menu bar has been closed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MENU_END = 0x0016;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A pop-up menu has been displayed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MENUPOPUP_START = 0x0017;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A pop-up menu has been closed.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MENUPOPUP_END = 0x0018;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window has received mouse capture.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_CAPTURE_START = 0x0019;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window has lost mouse capture.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_CAPTURE_END = 0x001A;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window is being moved or resized.
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MOVESIZE_START = 0x001B;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The movement or resizing of a window has finished
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MOVESIZE_END = 0x001C;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window has entered context-sensitive Help mode
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_CONTEXTHELP_START = 0x001D;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window has exited context-sensitive Help mode
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_CONTEXTHELP_END = 0x001E;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An application is about to enter drag-and-drop mode
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_DRAGDROP_START = 0x001F;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An application is about to exit drag-and-drop mode
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_DRAGDROP_END = 0x0020;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A dialog box has been displayed
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_DIALOG_START = 0x0021;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A dialog box has been closed
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_DIALOG_END = 0x0022;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scrolling has started on a scroll bar
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SCROLLING_START = 0x0023;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Scrolling has ended on a scroll bar
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_SCROLLING_END = 0x0024;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window object is about to be minimized or maximized
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MINIMIZE_START = 0x0025;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A window object has been minimized or maximized
|
|
|
|
*/
|
2009-09-09 02:03:14 -07:00
|
|
|
const unsigned long EVENT_MINIMIZE_END = 0x0026;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The loading of the document has completed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_DOCUMENT_LOAD_COMPLETE = 0x0027;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The document contents are being reloaded.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_DOCUMENT_RELOAD = 0x0028;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The loading of the document was interrupted.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_DOCUMENT_LOAD_STOPPED = 0x0029;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The document wide attributes of the document object have changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_DOCUMENT_ATTRIBUTES_CHANGED = 0x002A;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The contents of the document have changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_DOCUMENT_CONTENT_CHANGED = 0x002B;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_PROPERTY_CHANGED = 0x002C;
|
|
|
|
const unsigned long EVENT_SELECTION_CHANGED = 0x002D;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A text object's attributes changed.
|
|
|
|
* Also see EVENT_OBJECT_ATTRIBUTE_CHANGED.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_ATTRIBUTE_CHANGED = 0x002E;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The caret has moved to a new position.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_CARET_MOVED = 0x002F;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This event indicates general text changes, i.e. changes to text that is
|
|
|
|
* exposed through the IAccessibleText and IAccessibleEditableText interfaces.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_CHANGED = 0x0030;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Text was inserted.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_INSERTED = 0x0031;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Text was removed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_REMOVED = 0x0032;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Text was updated.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_UPDATED = 0x0033;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The text selection changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_SELECTION_CHANGED = 0x0034;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A visibile data event indicates the change of the visual appearance
|
|
|
|
* of an accessible object. This includes for example most of the
|
|
|
|
* attributes available via the IAccessibleComponent interface.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_VISIBLE_DATA_CHANGED = 0x0035;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The caret moved from one column to the next.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TEXT_COLUMN_CHANGED = 0x0036;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The caret moved from one section to the next.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_SECTION_CHANGED = 0x0037;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table caption changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_CAPTION_CHANGED = 0x0038;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table's data changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_MODEL_CHANGED = 0x0039;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table's summary changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_SUMMARY_CHANGED = 0x003A;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table's row description changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_ROW_DESCRIPTION_CHANGED = 0x003B;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table's row header changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_ROW_HEADER_CHANGED = 0x003C;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_ROW_INSERT = 0x003D;
|
|
|
|
const unsigned long EVENT_TABLE_ROW_DELETE = 0x003E;
|
|
|
|
const unsigned long EVENT_TABLE_ROW_REORDER = 0x003F;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table's column description changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED = 0x0040;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A table's column header changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_COLUMN_HEADER_CHANGED = 0x0041;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_TABLE_COLUMN_INSERT = 0x0042;
|
|
|
|
const unsigned long EVENT_TABLE_COLUMN_DELETE = 0x0043;
|
|
|
|
const unsigned long EVENT_TABLE_COLUMN_REORDER = 0x0044;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_WINDOW_ACTIVATE = 0x0045;
|
|
|
|
const unsigned long EVENT_WINDOW_CREATE = 0x0046;
|
|
|
|
const unsigned long EVENT_WINDOW_DEACTIVATE = 0x0047;
|
|
|
|
const unsigned long EVENT_WINDOW_DESTROY = 0x0048;
|
|
|
|
const unsigned long EVENT_WINDOW_MAXIMIZE = 0x0049;
|
|
|
|
const unsigned long EVENT_WINDOW_MINIMIZE = 0x004A;
|
|
|
|
const unsigned long EVENT_WINDOW_RESIZE = 0x004B;
|
|
|
|
const unsigned long EVENT_WINDOW_RESTORE = 0x004C;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The ending index of this link within the containing string has changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERLINK_END_INDEX_CHANGED = 0x004D;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The number of anchors assoicated with this hyperlink object has changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERLINK_NUMBER_OF_ANCHORS_CHANGED = 0x004E;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The hyperlink selected state changed from selected to unselected or
|
|
|
|
* from unselected to selected.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERLINK_SELECTED_LINK_CHANGED = 0x004F;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* One of the links associated with the hypertext object has been activated.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERTEXT_LINK_ACTIVATED = 0x0050;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* One of the links associated with the hypertext object has been selected.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERTEXT_LINK_SELECTED = 0x0051;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The starting index of this link within the containing string has changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERLINK_START_INDEX_CHANGED = 0x0052;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Focus has changed from one hypertext object to another, or focus moved
|
|
|
|
* from a non-hypertext object to a hypertext object, or focus moved from a
|
|
|
|
* hypertext object to a non-hypertext object.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERTEXT_CHANGED = 0x0053;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The number of hyperlinks associated with a hypertext object changed.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_HYPERTEXT_NLINKS_CHANGED = 0x0054;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* An object's attributes changed. Also see EVENT_TEXT_ATTRIBUTE_CHANGED.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_OBJECT_ATTRIBUTE_CHANGED = 0x0055;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A slide changed in a presentation document or a page boundary was
|
|
|
|
* crossed in a word processing document.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_PAGE_CHANGED = 0x0056;
|
2007-08-15 13:51:48 -07:00
|
|
|
|
2007-04-06 08:36:42 -07:00
|
|
|
/**
|
|
|
|
* Help make sure event map does not get out-of-line.
|
|
|
|
*/
|
2010-06-08 09:39:58 -07:00
|
|
|
const unsigned long EVENT_LAST_ENTRY = 0x0057;
|
2007-04-04 01:37:23 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/**
|
|
|
|
* The type of event, based on the enumerated event values
|
|
|
|
* defined in this interface.
|
|
|
|
*/
|
|
|
|
readonly attribute unsigned long eventType;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIAccessible associated with the event.
|
|
|
|
* May return null if no accessible is available
|
|
|
|
*/
|
|
|
|
readonly attribute nsIAccessible accessible;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIAccessibleDocument that the event target nsIAccessible
|
|
|
|
* resides in. This can be used to get the DOM window,
|
|
|
|
* the DOM document and the window handler, among other things.
|
|
|
|
*/
|
|
|
|
readonly attribute nsIAccessibleDocument accessibleDocument;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDOMNode associated with the event
|
|
|
|
* May return null if accessible for event has been shut down
|
|
|
|
*/
|
|
|
|
readonly attribute nsIDOMNode DOMNode;
|
2007-08-10 18:44:44 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the event was caused by explicit user input,
|
|
|
|
* as opposed to purely originating from a timer or mouse movement
|
|
|
|
*/
|
2010-08-24 19:08:28 -07:00
|
|
|
readonly attribute boolean isFromUserInput;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
2007-04-04 01:37:23 -07:00
|
|
|
|
2007-04-12 23:03:30 -07:00
|
|
|
|
2009-09-15 18:01:47 -07:00
|
|
|
[scriptable, uuid(9addd25d-8fa1-415e-94ec-6038f220d3e4)]
|
|
|
|
interface nsIAccessibleStateChangeEvent : nsISupports
|
2007-04-12 23:03:30 -07:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns the state of accessible (see constants declared
|
|
|
|
* in nsIAccessibleStates).
|
|
|
|
*/
|
|
|
|
readonly attribute unsigned long state;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the state is extra state.
|
|
|
|
*/
|
|
|
|
boolean isExtraState();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the state is turned on.
|
|
|
|
*/
|
|
|
|
boolean isEnabled();
|
|
|
|
};
|
|
|
|
|
2007-04-16 23:52:52 -07:00
|
|
|
|
2009-09-15 18:01:47 -07:00
|
|
|
[scriptable, uuid(21e0f8bd-5638-4964-870b-3c8e944ac4c4)]
|
|
|
|
interface nsIAccessibleTextChangeEvent : nsISupports
|
2007-04-16 23:52:52 -07:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns offset of changed text in accessible.
|
|
|
|
*/
|
|
|
|
readonly attribute long start;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns length of changed text.
|
|
|
|
*/
|
|
|
|
readonly attribute unsigned long length;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if text was inserted, otherwise false.
|
|
|
|
*/
|
|
|
|
boolean isInserted();
|
2007-08-28 14:57:53 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The inserted or removed text
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString modifiedText;
|
2007-04-16 23:52:52 -07:00
|
|
|
};
|
|
|
|
|
2009-09-15 18:01:47 -07:00
|
|
|
[scriptable, uuid(5675c486-a230-4d85-a4bd-33670826d5ff)]
|
|
|
|
interface nsIAccessibleCaretMoveEvent: nsISupports
|
2007-06-22 02:27:22 -07:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Return caret offset.
|
|
|
|
*/
|
|
|
|
readonly attribute long caretOffset;
|
|
|
|
};
|
|
|
|
|
2009-09-15 18:01:47 -07:00
|
|
|
[scriptable, uuid(df517997-ed52-4ea2-b310-2f8e0fe64572)]
|
|
|
|
interface nsIAccessibleTableChangeEvent: nsISupports
|
2008-01-17 18:56:38 -08:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Return the row or column index.
|
|
|
|
*/
|
|
|
|
readonly attribute long rowOrColIndex;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the number of rows or cols
|
|
|
|
*/
|
|
|
|
readonly attribute long numRowsOrCols;
|
|
|
|
};
|
|
|
|
|