Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #include "nsISupports.idl" |
michael@0 | 7 | |
michael@0 | 8 | [scriptable, uuid(f1e0fbb7-fde4-4519-9383-2bcbee428513)] |
michael@0 | 9 | interface nsIAccessibleStates : nsISupports |
michael@0 | 10 | { |
michael@0 | 11 | /** |
michael@0 | 12 | * MSAA State flags - used for bitfield. More than 1 allowed. |
michael@0 | 13 | */ |
michael@0 | 14 | const unsigned long STATE_UNAVAILABLE = 0x00000001; // Disabled, maps to opposite of Java ENABLED, Gnome/ATK SENSITIVE? |
michael@0 | 15 | const unsigned long STATE_SELECTED = 0x00000002; |
michael@0 | 16 | const unsigned long STATE_FOCUSED = 0x00000004; |
michael@0 | 17 | const unsigned long STATE_PRESSED = 0x00000008; |
michael@0 | 18 | const unsigned long STATE_CHECKED = 0x00000010; |
michael@0 | 19 | const unsigned long STATE_MIXED = 0x00000020; // 3-state checkbox or toolbar button |
michael@0 | 20 | const unsigned long STATE_READONLY = 0x00000040; // Maps to opposite of Java/Gnome/ATK EDITABLE state |
michael@0 | 21 | const unsigned long STATE_HOTTRACKED = 0x00000080; |
michael@0 | 22 | const unsigned long STATE_DEFAULT = 0x00000100; |
michael@0 | 23 | const unsigned long STATE_EXPANDED = 0x00000200; |
michael@0 | 24 | const unsigned long STATE_COLLAPSED = 0x00000400; |
michael@0 | 25 | const unsigned long STATE_BUSY = 0x00000800; |
michael@0 | 26 | const unsigned long STATE_FLOATING = 0x00001000; // Children "owned" not "contained" by parent |
michael@0 | 27 | const unsigned long STATE_MARQUEED = 0x00002000; |
michael@0 | 28 | const unsigned long STATE_ANIMATED = 0x00004000; |
michael@0 | 29 | const unsigned long STATE_INVISIBLE = 0x00008000; // Programatically hidden |
michael@0 | 30 | const unsigned long STATE_OFFSCREEN = 0x00010000; // Scrolled off |
michael@0 | 31 | const unsigned long STATE_SIZEABLE = 0x00020000; |
michael@0 | 32 | const unsigned long STATE_MOVEABLE = 0x00040000; |
michael@0 | 33 | const unsigned long STATE_SELFVOICING = 0x00080000; |
michael@0 | 34 | const unsigned long STATE_FOCUSABLE = 0x00100000; |
michael@0 | 35 | const unsigned long STATE_SELECTABLE = 0x00200000; |
michael@0 | 36 | const unsigned long STATE_LINKED = 0x00400000; |
michael@0 | 37 | const unsigned long STATE_TRAVERSED = 0x00800000; |
michael@0 | 38 | const unsigned long STATE_MULTISELECTABLE = 0x01000000; // Supports multiple selection |
michael@0 | 39 | const unsigned long STATE_EXTSELECTABLE = 0x02000000; // Supports extended selection |
michael@0 | 40 | const unsigned long STATE_ALERT_LOW = 0x04000000; // This information is of low priority |
michael@0 | 41 | const unsigned long STATE_ALERT_MEDIUM = 0x08000000; // This information is of medium priority |
michael@0 | 42 | const unsigned long STATE_ALERT_HIGH = 0x10000000; // This information is of high priority |
michael@0 | 43 | const unsigned long STATE_PROTECTED = 0x20000000; // Maps to Gnome's *Role* ATK_ROLE_PASSWD_TEXT, nothing for Java? |
michael@0 | 44 | const unsigned long STATE_HASPOPUP = 0x40000000; // New in MSAA 2.0 |
michael@0 | 45 | |
michael@0 | 46 | // Mapping important states that we don't have to unused alert states on MSAA |
michael@0 | 47 | // as per discussions with AT vendors. On ATK there will be legitimate states for |
michael@0 | 48 | // STATE_REQUIRED AND STATE_INVALID |
michael@0 | 49 | const unsigned long STATE_REQUIRED = STATE_ALERT_LOW; |
michael@0 | 50 | const unsigned long STATE_IMPORTANT = STATE_ALERT_MEDIUM; // Not currently used |
michael@0 | 51 | const unsigned long STATE_INVALID = STATE_ALERT_HIGH; |
michael@0 | 52 | const unsigned long STATE_CHECKABLE = STATE_MARQUEED; |
michael@0 | 53 | |
michael@0 | 54 | /** |
michael@0 | 55 | * Extended state flags (for now non-MSAA, for Java and Gnome/ATK support) |
michael@0 | 56 | * "Extended state flags" has separate value space from "MSAA State flags". |
michael@0 | 57 | */ |
michael@0 | 58 | const unsigned long EXT_STATE_SUPPORTS_AUTOCOMPLETION = 0x00000001; // For editable areas that have any kind of autocompletion |
michael@0 | 59 | const unsigned long EXT_STATE_DEFUNCT = 0x00000002; // Object no longer exists |
michael@0 | 60 | const unsigned long EXT_STATE_SELECTABLE_TEXT = 0x00000004; // For text which is selectable, object must implement nsIAccessibleText |
michael@0 | 61 | const unsigned long EXT_STATE_EDITABLE = 0x00000008; // Implements nsIAccessibleEditableText |
michael@0 | 62 | const unsigned long EXT_STATE_ACTIVE = 0x00000010; // This window is currently the active window |
michael@0 | 63 | const unsigned long EXT_STATE_MODAL = 0x00000020; // Must do something with control before leaving it |
michael@0 | 64 | const unsigned long EXT_STATE_MULTI_LINE = 0x00000040; // Edit control that can take multiple lines |
michael@0 | 65 | const unsigned long EXT_STATE_HORIZONTAL = 0x00000080; // Uses horizontal layout |
michael@0 | 66 | const unsigned long EXT_STATE_OPAQUE = 0x00000100; // Indicates this object paints every pixel within its rectangular region. |
michael@0 | 67 | const unsigned long EXT_STATE_SINGLE_LINE = 0x00000200; // This text object can only contain 1 line of text |
michael@0 | 68 | const unsigned long EXT_STATE_TRANSIENT = 0x00000400; // |
michael@0 | 69 | const unsigned long EXT_STATE_VERTICAL = 0x00000800; // Especially used for sliders and scrollbars |
michael@0 | 70 | const unsigned long EXT_STATE_STALE = 0x00001000; // Object not dead, but not up-to-date either |
michael@0 | 71 | const unsigned long EXT_STATE_ENABLED = 0x00002000; // A widget that is not unavailable |
michael@0 | 72 | const unsigned long EXT_STATE_SENSITIVE = 0x00004000; // Same as ENABLED for now |
michael@0 | 73 | const unsigned long EXT_STATE_EXPANDABLE = 0x00008000; // If COLLAPSED or EXPANDED |
michael@0 | 74 | const unsigned long EXT_STATE_PINNED = 0x00010000; // Indicates object is pinned. |
michael@0 | 75 | }; |
michael@0 | 76 |