docshell/base/nsITextScroll.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/docshell/base/nsITextScroll.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     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 +#include "nsISupports.idl"
    1.11 +
    1.12 +/**
    1.13 + * The nsITextScroll is an interface that can be implemented by a control that
    1.14 + * supports text scrolling. 
    1.15 + */
    1.16 +
    1.17 +[scriptable, uuid(067B28A0-877F-11d3-AF7E-00A024FFC08C)]
    1.18 +interface nsITextScroll : nsISupports
    1.19 +{
    1.20 +  /**
    1.21 +   * Scroll the view up or down by aNumLines lines. positive
    1.22 +   * values move down in the view. Prevents scrolling off the
    1.23 +   * end of the view.
    1.24 +   * @param numLines number of lines to scroll the view by
    1.25 +   */
    1.26 +	void scrollByLines(in long numLines);
    1.27 +
    1.28 +	/**
    1.29 +   * Scroll the view up or down by numPages pages. a page
    1.30 +   * is considered to be the amount displayed by the clip view.
    1.31 +   * positive values move down in the view. Prevents scrolling
    1.32 +   * off the end of the view.
    1.33 +   * @param numPages number of pages to scroll the view by
    1.34 +   */
    1.35 +	void scrollByPages(in long numPages);
    1.36 +};
    1.37 \ No newline at end of file

mercurial