Avoid potential negative array index access to cached text.
[LibreOffice.git] / android / source / src / java / org / mozilla / gecko / gfx / PanZoomTarget.java
blob88e1b216c61b3dd4c6c278aeffa43ba78da34a21
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 package org.mozilla.gecko.gfx;
8 import android.graphics.PointF;
10 import org.mozilla.gecko.ZoomConstraints;
12 public interface PanZoomTarget {
13 public ImmutableViewportMetrics getViewportMetrics();
14 public ZoomConstraints getZoomConstraints();
16 public void setAnimationTarget(ImmutableViewportMetrics viewport);
17 public void setViewportMetrics(ImmutableViewportMetrics viewport);
18 /** This triggers an (asynchronous) viewport update/redraw. */
19 public void forceRedraw();
21 public boolean post(Runnable action);
22 public Object getLock();
23 public PointF convertViewPointToLayerPoint(PointF viewPoint);
25 boolean isFullScreen();