2012-08-07 14:39:03 +00:00
|
|
|
/* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
|
|
|
* 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/. */
|
|
|
|
|
2013-02-08 14:11:43 +00:00
|
|
|
package org.mozilla.gecko.gfx;
|
2012-08-07 14:39:03 +00:00
|
|
|
|
|
|
|
import org.mozilla.gecko.ZoomConstraints;
|
|
|
|
|
|
|
|
import android.graphics.PointF;
|
2013-08-16 12:42:23 +00:00
|
|
|
import android.graphics.RectF;
|
2012-08-07 14:39:03 +00:00
|
|
|
|
|
|
|
public interface PanZoomTarget {
|
|
|
|
public ImmutableViewportMetrics getViewportMetrics();
|
|
|
|
public ZoomConstraints getZoomConstraints();
|
2014-05-07 19:22:14 +00:00
|
|
|
public FullScreenState getFullScreenState();
|
2015-08-18 18:27:20 +00:00
|
|
|
public PointF getVisibleEndOfLayerView();
|
2012-08-07 14:39:03 +00:00
|
|
|
|
2012-11-07 16:47:07 +00:00
|
|
|
public void setAnimationTarget(ImmutableViewportMetrics viewport);
|
|
|
|
public void setViewportMetrics(ImmutableViewportMetrics viewport);
|
2013-04-25 17:47:08 +00:00
|
|
|
public void scrollBy(float dx, float dy);
|
|
|
|
public void panZoomStopped();
|
2013-01-09 16:21:04 +00:00
|
|
|
/** This triggers an (asynchronous) viewport update/redraw. */
|
2013-04-26 17:26:46 +00:00
|
|
|
public void forceRedraw(DisplayPortMetrics displayPort);
|
2012-08-07 14:39:03 +00:00
|
|
|
|
|
|
|
public boolean post(Runnable action);
|
2013-09-04 18:07:11 +00:00
|
|
|
public void postRenderTask(RenderTask task);
|
|
|
|
public void removeRenderTask(RenderTask task);
|
2012-08-07 14:39:03 +00:00
|
|
|
public Object getLock();
|
|
|
|
public PointF convertViewPointToLayerPoint(PointF viewPoint);
|
|
|
|
}
|