/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsISupports.idl" /** * Defines cross platform (Gecko) roles. */ [scriptable, builtinclass, uuid(ad7f32a5-6d5f-4154-a5b8-0fa7aed48936)] interface nsIAccessibleRole : nsISupports { /** * Used when the accessible has no strongly-defined role. */ const unsigned long ROLE_NOTHING = 0; /** * Represents the menu bar (positioned beneath the title bar of a window) * from which menus are selected by the user. The role is used by * xul:menubar or role="menubar". */ const unsigned long ROLE_MENUBAR = 1; /** * Represents a vertical or horizontal scroll bar, which is part of the client * area or used in a control. */ const unsigned long ROLE_SCROLLBAR = 2; /** * Represents an alert or a condition that a user should be notified about. * Assistive Technologies typically respond to the role by reading the entire * onscreen contents of containers advertising this role. Should be used for * warning dialogs, etc. The role is used by xul:browsermessage, * role="alert". */ const unsigned long ROLE_ALERT = 3; /** * A sub-document ( or