docshell/base/nsITextScroll.idl
author Brad Werth <bwerth@mozilla.com>
Fri, 23 Mar 2018 15:40:02 -0700
changeset 467905 4f5b6a619ca0ac514ef0e86f7ed90b1fa8bff1df
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 485432 bf6961db9405d45709a6a8be29212983160c0b26
permissions -rw-r--r--
Bug 1451098 Part 1: Add asserts to widget/gtk/nsWindow.cpp to fail early when setting an invalid window size. r=karlt MozReview-Commit-ID: GHq7ik6EyIl

/* -*- Mode: IDL; tab-width: 4; 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"

/**
 * The nsITextScroll is an interface that can be implemented by a control that
 * supports text scrolling. 
 */

[scriptable, uuid(067B28A0-877F-11d3-AF7E-00A024FFC08C)]
interface nsITextScroll : nsISupports
{
  /**
   * Scroll the view up or down by aNumLines lines. positive
   * values move down in the view. Prevents scrolling off the
   * end of the view.
   * @param numLines number of lines to scroll the view by
   */
	void scrollByLines(in long numLines);

	/**
   * Scroll the view up or down by numPages pages. a page
   * is considered to be the amount displayed by the clip view.
   * positive values move down in the view. Prevents scrolling
   * off the end of the view.
   * @param numPages number of pages to scroll the view by
   */
	void scrollByPages(in long numPages);
};