Back to index

lightning-sunbird  0.9+nobinonly
nsIAccessibleEvent.idl
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2003
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Original Author: Aaron Leventhal (aaronl@netscape.com)
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #include "nsISupports.idl"
00039 
00040 interface nsIAccessible;
00041 interface nsIAccessibleDocument;
00042 interface nsIDOMNode;
00043 
00044 %{C++
00045 #define NS_ACCESSIBLE_EVENT_TOPIC "accessible-event"
00046 %}
00047 
00062 [scriptable, uuid(87F29033-C4A6-40a3-AC7A-3BA391F9992D)]
00063 interface nsIAccessibleEvent : nsISupports
00064 {
00069   readonly attribute unsigned long eventType;
00070   
00075   readonly attribute nsIAccessible accessible;
00076   
00082   readonly attribute nsIAccessibleDocument accessibleDocument;
00083 
00088   readonly attribute nsIDOMNode DOMNode;
00089 
00090   // these are set to the values given by MSAA
00091   const unsigned long EVENT_CREATE             = 0x8000;
00092   const unsigned long EVENT_DESTROY            = 0x8001;
00093   const unsigned long EVENT_SHOW               = 0x8002;
00094   const unsigned long EVENT_HIDE               = 0x8003;
00095   const unsigned long EVENT_REORDER            = 0x8004;
00096   const unsigned long EVENT_FOCUS              = 0x8005;
00097   const unsigned long EVENT_STATE_CHANGE       = 0x800A;
00098   const unsigned long EVENT_LOCATION_CHANGE    = 0x800B;
00099   const unsigned long EVENT_NAME_CHANGE        = 0x800C;
00100   const unsigned long EVENT_DESCRIPTIONCHANGE  = 0x800D;
00101   const unsigned long EVENT_VALUE_CHANGE       = 0x800E;
00102   const unsigned long EVENT_PARENTCHANGE       = 0x800F;
00103   const unsigned long EVENT_HELPCHANGE         = 0x8010;
00104   const unsigned long EVENT_DEFACTIONCHANGE    = 0x8011;
00105   const unsigned long EVENT_ACCELERATORCHANGE  = 0x8012;
00106   const unsigned long EVENT_SELECTION          = 0x8006;
00107   const unsigned long EVENT_SELECTION_ADD      = 0x8007;
00108   const unsigned long EVENT_SELECTION_REMOVE   = 0x8008;
00109   const unsigned long EVENT_SELECTION_WITHIN   = 0x8009;
00110   const unsigned long EVENT_ALERT              = 0x0002;
00111   const unsigned long EVENT_FOREGROUND         = 0x0003;
00112   const unsigned long EVENT_MENUSTART          = 0x0004;
00113   const unsigned long EVENT_MENUEND            = 0x0005;
00114   const unsigned long EVENT_MENUPOPUPSTART     = 0x0006;
00115   const unsigned long EVENT_MENUPOPUPEND       = 0x0007;
00116   const unsigned long EVENT_CAPTURESTART       = 0x0008;
00117   const unsigned long EVENT_CAPTUREEND         = 0x0009;
00118   const unsigned long EVENT_MOVESIZESTART      = 0x000A;
00119   const unsigned long EVENT_MOVESIZEEND        = 0x000B;
00120   const unsigned long EVENT_CONTEXTHELPSTART   = 0x000C;
00121   const unsigned long EVENT_CONTEXTHELPEND     = 0x000D;
00122   const unsigned long EVENT_DRAGDROPSTART      = 0x000E;
00123   const unsigned long EVENT_DRAGDROPEND        = 0x000F;
00124   const unsigned long EVENT_DIALOGSTART        = 0x0010;
00125   const unsigned long EVENT_DIALOGEND          = 0x0011;
00126   const unsigned long EVENT_SCROLLINGSTART     = 0x0012;
00127   const unsigned long EVENT_SCROLLINGEND       = 0x0013;
00128   const unsigned long EVENT_MINIMIZESTART      = 0x0016;
00129   const unsigned long EVENT_MINIMIZEEND        = 0x0017;
00130 
00131   // the additional events for ATK
00132   const unsigned long EVENT_ATK_PROPERTY_CHANGE        = 0x0100;
00133   const unsigned long EVENT_ATK_SELECTION_CHANGE       = 0x0101;
00134   const unsigned long EVENT_ATK_TEXT_CHANGE            = 0x0102;
00135   const unsigned long EVENT_ATK_TEXT_SELECTION_CHANGE  = 0x0103;
00136   const unsigned long EVENT_ATK_TEXT_CARET_MOVE        = 0x0104;
00137   const unsigned long EVENT_ATK_VISIBLE_DATA_CHANGE    = 0x0105;
00138   const unsigned long EVENT_ATK_TABLE_MODEL_CHANGE     = 0x0110;
00139   const unsigned long EVENT_ATK_TABLE_ROW_INSERT       = 0x0111;
00140   const unsigned long EVENT_ATK_TABLE_ROW_DELETE       = 0x0112;
00141   const unsigned long EVENT_ATK_TABLE_ROW_REORDER      = 0x0113;
00142   const unsigned long EVENT_ATK_TABLE_COLUMN_INSERT    = 0x0114;
00143   const unsigned long EVENT_ATK_TABLE_COLUMN_DELETE    = 0x0115;
00144   const unsigned long EVENT_ATK_TABLE_COLUMN_REORDER   = 0x0116;
00145   const unsigned long EVENT_ATK_LINK_SELECTED          = 0x0117;
00146   const unsigned long EVENT_ATK_WINDOW_ACTIVATE        = 0x0118;
00147   const unsigned long EVENT_ATK_WINDOW_CREATE          = 0x0119;
00148   const unsigned long EVENT_ATK_WINDOW_DEACTIVATE      = 0x0120;
00149   const unsigned long EVENT_ATK_WINDOW_DESTROY         = 0x0121;
00150   const unsigned long EVENT_ATK_WINDOW_MAXIMIZE        = 0x0122;
00151   const unsigned long EVENT_ATK_WINDOW_MINIMIZE        = 0x0123;
00152   const unsigned long EVENT_ATK_WINDOW_RESIZE          = 0x0124;
00153   const unsigned long EVENT_ATK_WINDOW_RESTORE         = 0x0125;
00154 };