accessible/src/base/RelationType.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/src/base/RelationType.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,139 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 et sw=2 tw=80: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef mozilla_a11y_relationtype_h_
    1.11 +#define mozilla_a11y_relationtype_h_
    1.12 +
    1.13 +#include "mozilla/TypedEnum.h"
    1.14 +
    1.15 +namespace mozilla {
    1.16 +namespace a11y {
    1.17 +
    1.18 +MOZ_BEGIN_ENUM_CLASS(RelationType)
    1.19 +
    1.20 +  /**
    1.21 +   * This object is labelled by a target object.
    1.22 +   */
    1.23 +  LABELLED_BY = 0x00,
    1.24 +
    1.25 +  /**
    1.26 +   * This object is label for a target object.
    1.27 +   */
    1.28 +  LABEL_FOR = 0x01,
    1.29 +
    1.30 +  /**
    1.31 +   * This object is described by the target object.
    1.32 +   */
    1.33 +  DESCRIBED_BY = 0x02,
    1.34 +
    1.35 +  /**
    1.36 +   * This object is describes the target object.
    1.37 +   */
    1.38 +  DESCRIPTION_FOR = 0x3,
    1.39 +
    1.40 +  /**
    1.41 +   * This object is a child of a target object.
    1.42 +   */
    1.43 +  NODE_CHILD_OF = 0x4,
    1.44 +
    1.45 +  /**
    1.46 +   * This object is a parent of a target object. A dual relation to
    1.47 +   * NODE_CHILD_OF.
    1.48 +   */
    1.49 +  NODE_PARENT_OF = 0x5,
    1.50 +
    1.51 +  /**
    1.52 +   * Some attribute of this object is affected by a target object.
    1.53 +   */
    1.54 +  CONTROLLED_BY = 0x06,
    1.55 +
    1.56 +  /**
    1.57 +   * This object is interactive and controls some attribute of a target object.
    1.58 +   */
    1.59 +  CONTROLLER_FOR = 0x07,
    1.60 +
    1.61 +  /**
    1.62 +   * Content flows from this object to a target object, i.e. has content that
    1.63 +   * flows logically to another object in a sequential way, e.g. text flow.
    1.64 +   */
    1.65 +  FLOWS_TO = 0x08,
    1.66 +
    1.67 +  /**
    1.68 +   * Content flows to this object from a target object, i.e. has content that
    1.69 +   * flows logically from another object in a sequential way, e.g. text flow.
    1.70 +   */
    1.71 +  FLOWS_FROM = 0x09,
    1.72 +
    1.73 +  /**
    1.74 +   * This object is a member of a group of one or more objects. When there is
    1.75 +   * more than one object in the group each member may have one and the same
    1.76 +   * target, e.g. a grouping object.  It is also possible that each member has
    1.77 +   * multiple additional targets, e.g. one for every other member in the group.
    1.78 +   */
    1.79 +  MEMBER_OF = 0x0a,
    1.80 +
    1.81 +  /**
    1.82 +   * This object is a sub window of a target object.
    1.83 +   */
    1.84 +  SUBWINDOW_OF = 0x0b,
    1.85 +
    1.86 +  /**
    1.87 +   * This object embeds a target object. This relation can be used on the
    1.88 +   * OBJID_CLIENT accessible for a top level window to show where the content
    1.89 +   * areas are.
    1.90 +   */
    1.91 +  EMBEDS = 0x0c,
    1.92 +
    1.93 +  /**
    1.94 +   * This object is embedded by a target object.
    1.95 +   */
    1.96 +  EMBEDDED_BY = 0x0d,
    1.97 +
    1.98 +  /**
    1.99 +   * This object is a transient component related to the target object. When
   1.100 +   * this object is activated the target object doesn't lose focus.
   1.101 +   */
   1.102 +  POPUP_FOR = 0x0e,
   1.103 +
   1.104 +  /**
   1.105 +   * This object is a parent window of the target object.
   1.106 +   */
   1.107 +  PARENT_WINDOW_OF = 0x0f,
   1.108 +
   1.109 +  /**
   1.110 +   * Part of a form/dialog with a related default button. It is used for
   1.111 +   * MSAA/XPCOM, it isn't for IA2 or ATK.
   1.112 +   */
   1.113 +  DEFAULT_BUTTON = 0x10,
   1.114 +
   1.115 +  /**
   1.116 +   * The target object is the containing document object.
   1.117 +   */
   1.118 +  CONTAINING_DOCUMENT = 0x11,
   1.119 +
   1.120 +  /**
   1.121 +   * The target object is the topmost containing document object in the tab pane.
   1.122 +   */
   1.123 +  CONTAINING_TAB_PANE = 0x12,
   1.124 +
   1.125 +  /**
   1.126 +   * The target object is the containing window object.
   1.127 +   */
   1.128 +  CONTAINING_WINDOW = 0x13,
   1.129 +
   1.130 +  /**
   1.131 +   * The target object is the containing application object.
   1.132 +   */
   1.133 +  CONTAINING_APPLICATION = 0x14,
   1.134 +
   1.135 +  LAST = CONTAINING_APPLICATION
   1.136 +
   1.137 +MOZ_END_ENUM_CLASS(RelationType)
   1.138 +
   1.139 +} // namespace a11y
   1.140 +} // namespace mozilla
   1.141 +
   1.142 +#endif

mercurial