michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0:
michael@0: #include "nsISupports.idl"
michael@0:
michael@0: /**
michael@0: * Defines cross platform (Gecko) roles.
michael@0: */
michael@0: [scriptable, uuid(50db5e86-9a45-4637-a5c3-4ff148c33270)]
michael@0: interface nsIAccessibleRole : nsISupports
michael@0: {
michael@0: /**
michael@0: * Used when accessible hans't strong defined role.
michael@0: */
michael@0: const unsigned long ROLE_NOTHING = 0;
michael@0:
michael@0: /**
michael@0: * Represents a title or caption bar for a window. It is used by MSAA only,
michael@0: * supported automatically by MS Windows.
michael@0: */
michael@0: const unsigned long ROLE_TITLEBAR = 1;
michael@0:
michael@0: /**
michael@0: * Represents the menu bar (positioned beneath the title bar of a window)
michael@0: * from which menus are selected by the user. The role is used by
michael@0: * xul:menubar or role="menubar".
michael@0: */
michael@0: const unsigned long ROLE_MENUBAR = 2;
michael@0:
michael@0: /**
michael@0: * Represents a vertical or horizontal scroll bar, which is part of the client
michael@0: * area or used in a control.
michael@0: */
michael@0: const unsigned long ROLE_SCROLLBAR = 3;
michael@0:
michael@0: /**
michael@0: * Represents a special mouse pointer, which allows a user to manipulate user
michael@0: * interface elements such as windows. For example, a user clicks and drags
michael@0: * a sizing grip in the lower-right corner of a window to resize it.
michael@0: */
michael@0: const unsigned long ROLE_GRIP = 4;
michael@0:
michael@0: /**
michael@0: * Represents a system sound, which is associated with various system events.
michael@0: */
michael@0: const unsigned long ROLE_SOUND = 5;
michael@0:
michael@0: /**
michael@0: * Represents the system mouse pointer.
michael@0: */
michael@0: const unsigned long ROLE_CURSOR = 6;
michael@0:
michael@0: /**
michael@0: * Represents the system caret. The role is supported for caret.
michael@0: */
michael@0: const unsigned long ROLE_CARET = 7;
michael@0:
michael@0: /**
michael@0: * Represents an alert or a condition that a user should be notified about.
michael@0: * Assistive Technologies typically respond to the role by reading the entire
michael@0: * onscreen contents of containers advertising this role. Should be used for
michael@0: * warning dialogs, etc. The role is used by xul:browsermessage,
michael@0: * role="alert".
michael@0: */
michael@0: const unsigned long ROLE_ALERT = 8;
michael@0:
michael@0: /**
michael@0: * Represents the window frame, which contains child objects such as
michael@0: * a title bar, client, and other objects contained in a window. The role
michael@0: * is supported automatically by MS Windows.
michael@0: */
michael@0: const unsigned long ROLE_WINDOW = 9;
michael@0:
michael@0: /**
michael@0: * A sub-document ( or