accessible/public/nsIAccessibleTypes.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/public/nsIAccessibleTypes.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,81 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +/**
    1.12 + * These constants control the scrolling of an object or substring into a
    1.13 + * window. Note, keep them synchronized with IA2ScrollType.
    1.14 + */
    1.15 +[scriptable, uuid(05cd38b1-94b3-4cdf-8371-3935a9611405)]
    1.16 +interface nsIAccessibleScrollType : nsISupports
    1.17 +{
    1.18 +  /**
    1.19 +   * Scroll the top left of the object or substring to the top left of the
    1.20 +   * window (or as close as possible).
    1.21 +   */
    1.22 +  const unsigned long SCROLL_TYPE_TOP_LEFT =0x00;
    1.23 +
    1.24 +  /**
    1.25 +   * Scroll the bottom right of the object or substring to the bottom right of
    1.26 +   * the window (or as close as possible).
    1.27 +   */
    1.28 +  const unsigned long SCROLL_TYPE_BOTTOM_RIGHT = 0x01;
    1.29 +
    1.30 +  /**
    1.31 +   * Scroll the top edge of the object or substring to the top edge of the
    1.32 +   * window (or as close as possible).
    1.33 +   */
    1.34 +  const unsigned long SCROLL_TYPE_TOP_EDGE = 0x02;
    1.35 +
    1.36 +  /**
    1.37 +   * Scroll the bottom edge of the object or substring to the bottom edge of
    1.38 +   * the window (or as close as possible).
    1.39 +   */
    1.40 +  const unsigned long SCROLL_TYPE_BOTTOM_EDGE = 0x03;
    1.41 +
    1.42 +  /**
    1.43 +   * Scroll the left edge of the object or substring to the left edge of the
    1.44 +   * window (or as close as possible).
    1.45 +   */
    1.46 +  const unsigned long SCROLL_TYPE_LEFT_EDGE =0x04;
    1.47 +
    1.48 +  /**
    1.49 +   * Scroll the right edge of the object or substring to the right edge of the
    1.50 +   * window (or as close as possible).
    1.51 +   */
    1.52 +  const unsigned long SCROLL_TYPE_RIGHT_EDGE = 0x05;
    1.53 +
    1.54 +  /**
    1.55 +   * Scroll an object the minimum amount necessary in order for the entire
    1.56 +   * frame to be visible (if possible).
    1.57 +   */
    1.58 +  const unsigned long SCROLL_TYPE_ANYWHERE = 0x06;
    1.59 +};
    1.60 +
    1.61 +
    1.62 +/**
    1.63 + * These constants define which coordinate system a point is located in.
    1.64 + */
    1.65 +[scriptable, uuid(c9fbdf10-619e-436f-bf4b-8566686f1577)]
    1.66 +interface nsIAccessibleCoordinateType : nsISupports
    1.67 +{
    1.68 +  /**
    1.69 +   * The coordinates are relative to the screen.
    1.70 +   */
    1.71 +  const unsigned long COORDTYPE_SCREEN_RELATIVE = 0x00;
    1.72 +
    1.73 +  /**
    1.74 +   * The coordinates are relative to the window.
    1.75 +   */
    1.76 +  const unsigned long COORDTYPE_WINDOW_RELATIVE = 0x01;
    1.77 +
    1.78 +  /**
    1.79 +   * The coordinates are relative to the upper left corner of the bounding box
    1.80 +   * of the immediate parent.
    1.81 +   */
    1.82 +  const unsigned long COORDTYPE_PARENT_RELATIVE = 0x02;
    1.83 +};
    1.84 +

mercurial