1 /**
  2  * Copyright (C) 2010-2014 KO GmbH <copyright@kogmbh.com>
  3  *
  4  * @licstart
  5  * This file is part of WebODF.
  6  *
  7  * WebODF is free software: you can redistribute it and/or modify it
  8  * under the terms of the GNU Affero General Public License (GNU AGPL)
  9  * as published by the Free Software Foundation, either version 3 of
 10  * the License, or (at your option) any later version.
 11  *
 12  * WebODF is distributed in the hope that it will be useful, but
 13  * WITHOUT ANY WARRANTY; without even the implied warranty of
 14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 15  * GNU Affero General Public License for more details.
 16  *
 17  * You should have received a copy of the GNU Affero General Public License
 18  * along with WebODF.  If not, see <http://www.gnu.org/licenses/>.
 19  * @licend
 20  *
 21  * @source: http://www.webodf.org/
 22  * @source: https://github.com/kogmbh/WebODF/
 23  */
 24 
 25 /*global gui*/
 26 /*jslint emptyblock: true, unparam: true*/
 27 
 28 /**
 29  * @interface
 30  */
 31 gui.Viewport = function Viewport() { "use strict"; };
 32 
 33 /**
 34  * Scroll the specified client rectangle into the viewport. No scrolling
 35  * will occur if the clientRect is already visible, is null, or the scroll pane
 36  * itself is invisible.
 37  *
 38  * If the clientRect is larger than the available scroll height, as much of the
 39  * rect will be shown in the view as possible whilst ensuring the top is still
 40  * on screen. Similar logic applies if the clientRect width is too large.
 41  *
 42  * @param {?core.SimpleClientRect} clientRect
 43  * @param {!boolean=} alignWithTop Align the clientRect to the top of the viewport. If unspecified or false, the
 44  *  view will scroll only as much as required to bring the clientRect into view.
 45  * @return {undefined}
 46  */
 47 gui.Viewport.prototype.scrollIntoView = function(clientRect, alignWithTop) { "use strict"; };