/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:expandtab:shiftwidth=2:tabstop=2: */
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is mozilla.org code.
 *
 * The Initial Developer of the Original Code is
 * Trevor Saunders
 * Portions created by the Initial Developer are Copyright (C) 2011
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Trevor Saunders <trev.saunders@gmail.com> (original author)
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

#ifndef _states_h_
#define _states_h_

#include <prtypes.h>

namespace mozilla {
namespace a11y {
namespace states {

  /**
   * The object is disabled, opposite to enabled and sensitive.
   */
  const PRUint64 UNAVAILABLE = ((PRUint64) 0x1) << 0;

  /**
   * The object is selected.
   */
  const PRUint64 SELECTED = ((PRUint64) 0x1) << 1;

  /**
   * The object has the keyboard focus.
   */
  const PRUint64 FOCUSED = ((PRUint64) 0x1) << 2;

  /**
   * The object is pressed.
   */
  const PRUint64 PRESSED = ((PRUint64) 0x1) << 3;

  /**
   * The checkable object is checked, applied to check box controls,
   * @see CHECKABLE and MIXED states.
   */
  const PRUint64 CHECKED = ((PRUint64) 0x1) << 4;

  /**
   * Indicates that the state of a three-state check box or tool bar button is
   * undetermined.  The check box is neither checked or unchecked, and is
   * in the third or mixed state.
   */
  const PRUint64 MIXED = ((PRUint64) 0x1) << 5;

  /**
   * The object is designated read-only, so it can't be edited.
   */
  const PRUint64 READONLY = ((PRUint64) 0x1) << 6;

  /**
   * The object is hot-tracked by the mouse, which means that its appearance
   * has changed to indicate that the mouse pointer is located over it.
   *
   * This is currently unused.
   */
  const PRUint64 HOTTRACKED = ((PRUint64) 0x1) << 7;

  /**
   * This object is the default button in a window.
   */
  const PRUint64 DEFAULT = ((PRUint64) 0x1) << 8;

  /**
   * The expandable object's children are displayed, the opposite of collapsed,
   * applied to trees, list and other controls.
   * @see COLLAPSED state
   */
  const PRUint64 EXPANDED = ((PRUint64) 0x1) << 9;

  /**
   * The expandable object's children are not displayed, the opposite of
   * expanded, applied to tree lists and other controls, 
   * @see EXPANDED state.
   */
  const PRUint64 COLLAPSED = ((PRUint64) 0x1) << 10;

  /**
   * The control or document can not accept input at this time.
   */
  const PRUint64 BUSY = ((PRUint64) 0x1) << 11;

  /**
   * The object is out of normal flow, may be outside of boundaries of its
   * parent.
   */
  const PRUint64 FLOATING = ((PRUint64) 0x1) << 12;

  /**
   * The object can be checked.
   */
  const PRUint64 CHECKABLE = ((PRUint64) 0x1) << 13;

  /**
   * This object is a graphic which is rapidly changing appearance.
   */
  const PRUint64 ANIMATED = ((PRUint64) 0x1) << 14;

  /**
   * The object is programmatically hidden.
   * So user action like scrolling or switching tabs won't make this visible.
   */
  const PRUint64 INVISIBLE = ((PRUint64) 0x1) << 15;

  /**
   * The object is scrolled off screen.
   * User action such as scrolling or changing tab may make the object
   * visible.
   */
  const PRUint64 OFFSCREEN = ((PRUint64) 0x1) << 16;

  /**
   * The object can be resized.
   */
  const PRUint64 SIZEABLE = ((PRUint64) 0x1) << 17;

  /**
   * The object can be moved to a different position.
   */
  const PRUint64 MOVEABLE = ((PRUint64) 0x1) << 18;

  /**
   * The object describes itself with speech.
   * Other speech related assistive technology may want to avoid speaking
   * information about this object, because the object is already doing this.
   */
  const PRUint64 SELFVOICING = ((PRUint64) 0x1) << 19;

  /**
   * The object can have the focus and become focused.
   */
  const PRUint64 FOCUSABLE = ((PRUint64) 0x1) << 20;

  /**
   * The object can be selected.
   */
  const PRUint64 SELECTABLE = ((PRUint64) 0x1) << 21;

  /**
   * This object is a link.
   */
  const PRUint64 LINKED = ((PRUint64) 0x1) << 22;

  /**
   * This is used for links that have been traversed
   * i.e. the linked page has been visited.
   */
  const PRUint64 TRAVERSED = ((PRUint64) 0x1) << 23;

  /**
   * Supports multiple selection.
   */
  const PRUint64 MULTISELECTABLE = ((PRUint64) 0x1) << 24;

  /**
   * Supports extended selection.
   * All objects supporting this are also multipselectable.
   * This only makes sense for msaa see bug 635690.
   */
  const PRUint64 EXTSELECTABLE = ((PRUint64) 0x1) << 25;

  /**
   * The user is required to interact with this object.
   */
  const PRUint64 REQUIRED = ((PRUint64) 0x1) << 26;

  /**
   * The object is an alert, notifying the user of something important.
   */
  const PRUint64 ALERT = ((PRUint64) 0x1) << 27;

  /**
   * Used for text fields containing invalid values.
   */
  const PRUint64 INVALID = ((PRUint64) 0x1) << 28;

  /**
   * The controls value can not be obtained, and is returned as a set of "*"s.
   */
  const PRUint64 PROTECTED = ((PRUint64) 0x1) << 29;

  /**
   * The object can be invoked to show a pop up menu or window.
   */
 const PRUint64 HASPOPUP = ((PRUint64) 0x1) << 30;

 /**
  * The editable area has some kind of autocompletion.
  */
  const PRUint64 SUPPORTS_AUTOCOMPLETION = ((PRUint64) 0x1) << 31;

  /**
   * The object is no longer available to be queried.
   */
  const PRUint64 DEFUNCT = ((PRUint64) 0x1) << 32;

  /**
   * The text is selectable, the object must implement the text interface.
   */
  const PRUint64 SELECTABLE_TEXT = ((PRUint64) 0x1) << 33;

  /**
   * The text in this object can be edited.
   */
  const PRUint64 EDITABLE = ((PRUint64) 0x1) << 34;

  /**
   * This window is currently the active window.
   */
  const PRUint64 ACTIVE = ((PRUint64) 0x1) << 35;

  /**
   * Indicates that the object is modal. Modal objects have the behavior
   * that something must be done with the object before the user can
   * interact with an object in a different window.
   */
  const PRUint64 MODAL = ((PRUint64) 0x1) << 36;

  /**
   * Edit control that can take multiple lines.
  */
  const PRUint64 MULTI_LINE = ((PRUint64) 0x1) << 37;

  /**
   * Uses horizontal layout.
   */
  const PRUint64 HORIZONTAL = ((PRUint64) 0x1) << 38;

  /**
   * Indicates this object paints every pixel within its rectangular region.
   */
  const PRUint64 OPAQUE1 = ((PRUint64) 0x1) << 39;

  /**
   * This text object can only contain 1 line of text.
   */
  const PRUint64 SINGLE_LINE = ((PRUint64) 0x1) << 40;

  /**
   * The parent object manages descendants, and this object may only exist
   * while it is visible or has focus.
   * For example the focused cell of a table or the current element of a list box may have this state.
   */
  const PRUint64 TRANSIENT = ((PRUint64) 0x1) << 41;

  /**
   * Uses vertical layout.
   * Especially used for sliders and scrollbars.
   */
  const PRUint64 VERTICAL = ((PRUint64) 0x1) << 42;

  /**
   * Object not dead, but not up-to-date either.
   */
  const PRUint64 STALE = ((PRUint64) 0x1) << 43;

  /**
   * A widget that is not unavailable.
   */
  const PRUint64 ENABLED = ((PRUint64) 0x1) << 44;

  /**
   * Same as ENABLED state for now see bug 636158
   */
  const PRUint64 SENSITIVE = ((PRUint64) 0x1) << 45;

  /**
   * The object is expandable, provides a UI to expand/collapse its children
   * @see EXPANDED and COLLAPSED states.
   */
  const PRUint64 EXPANDABLE = ((PRUint64) 0x1) << 46;
} // namespace states
} // namespace a11y
} // namespace mozilla

#endif
	
