1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=4:tabstop=4:
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #include "AccessibleEventId.h"
11 const uint32_t kEVENT_WIN_UNKNOWN
= 0x00000000;
13 static const uint32_t gWinEventMap
[] = {
15 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent doesn't have 0 constant
16 EVENT_OBJECT_SHOW
, // nsIAccessibleEvent::EVENT_SHOW
17 EVENT_OBJECT_HIDE
, // nsIAccessibleEvent::EVENT_HIDE
18 EVENT_OBJECT_REORDER
, // nsIAccessibleEvent::EVENT_REORDER
19 EVENT_OBJECT_FOCUS
, // nsIAccessibleEvent::EVENT_FOCUS
20 EVENT_OBJECT_STATECHANGE
, // nsIAccessibleEvent::EVENT_STATE_CHANGE
21 EVENT_OBJECT_NAMECHANGE
, // nsIAccessibleEvent::EVENT_NAME_CHANGE
22 EVENT_OBJECT_DESCRIPTIONCHANGE
, // nsIAccessibleEvent::EVENT_DESCRIPTION_CHANGE
23 EVENT_OBJECT_VALUECHANGE
, // nsIAccessibleEvent::EVENT_VALUE_CHANGE
24 EVENT_OBJECT_SELECTION
, // nsIAccessibleEvent::EVENT_SELECTION
25 EVENT_OBJECT_SELECTIONADD
, // nsIAccessibleEvent::EVENT_SELECTION_ADD
26 EVENT_OBJECT_SELECTIONREMOVE
, // nsIAccessibleEvent::EVENT_SELECTION_REMOVE
27 EVENT_OBJECT_SELECTIONWITHIN
, // nsIAccessibleEvent::EVENT_SELECTION_WITHIN
28 EVENT_SYSTEM_ALERT
, // nsIAccessibleEvent::EVENT_ALERT
29 EVENT_SYSTEM_MENUSTART
, // nsIAccessibleEvent::EVENT_MENU_START
30 EVENT_SYSTEM_MENUEND
, // nsIAccessibleEvent::EVENT_MENU_END
31 EVENT_SYSTEM_MENUPOPUPSTART
, // nsIAccessibleEvent::EVENT_MENUPOPUP_START
32 EVENT_SYSTEM_MENUPOPUPEND
, // nsIAccessibleEvent::EVENT_MENUPOPUP_END
33 EVENT_SYSTEM_DRAGDROPSTART
, // nsIAccessibleEvent::EVENT_DRAGDROP_START
34 EVENT_SYSTEM_SCROLLINGSTART
, // nsIAccessibleEvent::EVENT_SCROLLING_START
35 EVENT_SYSTEM_SCROLLINGEND
, // nsIAccessibleEvent::EVENT_SCROLLING_END
36 IA2_EVENT_DOCUMENT_LOAD_COMPLETE
, // nsIAccessibleEvent::EVENT_DOCUMENT_LOAD_COMPLETE
37 IA2_EVENT_DOCUMENT_RELOAD
, // nsIAccessibleEvent::EVENT_DOCUMENT_RELOAD
38 IA2_EVENT_DOCUMENT_LOAD_STOPPED
, // nsIAccessibleEvent::EVENT_DOCUMENT_LOAD_STOPPED
39 IA2_EVENT_TEXT_ATTRIBUTE_CHANGED
, // nsIAccessibleEvent::EVENT_TEXT_ATTRIBUTE_CHANGED
40 IA2_EVENT_TEXT_CARET_MOVED
, // nsIAccessibleEvent::EVENT_TEXT_CARET_MOVED
41 IA2_EVENT_TEXT_INSERTED
, // nsIAccessibleEvent::EVENT_TEXT_INSERTED
42 IA2_EVENT_TEXT_REMOVED
, // nsIAccessibleEvent::EVENT_TEXT_REMOVED
43 IA2_EVENT_TEXT_SELECTION_CHANGED
, // nsIAccessibleEvent::EVENT_TEXT_SELECTION_CHANGED
44 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_WINDOW_ACTIVATE
45 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_WINDOW_DEACTIVATE
46 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_WINDOW_MAXIMIZE
47 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_WINDOW_MINIMIZE
48 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_WINDOW_RESTORE
49 IA2_EVENT_OBJECT_ATTRIBUTE_CHANGED
, // nsIAccessibleEvent::EVENT_OBJECT_ATTRIBUTE_CHANGED
50 EVENT_OBJECT_VALUECHANGE
, // nsIAccessibleEvent::EVENT_TEXT_VALUE_CHANGE
51 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_SCROLLING
52 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_ANNOUNCEMENT
53 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_LIVE_REGION_ADDED
54 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_LIVE_REGION_REMOVED
55 kEVENT_WIN_UNKNOWN
, // nsIAccessibleEvent::EVENT_INNER_REORDER