Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- |
michael@0 | 2 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | package org.mozilla.gecko.gfx; |
michael@0 | 7 | |
michael@0 | 8 | import org.mozilla.gecko.ZoomConstraints; |
michael@0 | 9 | |
michael@0 | 10 | import android.graphics.PointF; |
michael@0 | 11 | import android.graphics.RectF; |
michael@0 | 12 | |
michael@0 | 13 | public interface PanZoomTarget { |
michael@0 | 14 | public ImmutableViewportMetrics getViewportMetrics(); |
michael@0 | 15 | public ZoomConstraints getZoomConstraints(); |
michael@0 | 16 | public boolean isFullScreen(); |
michael@0 | 17 | public RectF getMaxMargins(); |
michael@0 | 18 | |
michael@0 | 19 | public void setAnimationTarget(ImmutableViewportMetrics viewport); |
michael@0 | 20 | public void setViewportMetrics(ImmutableViewportMetrics viewport); |
michael@0 | 21 | public void scrollBy(float dx, float dy); |
michael@0 | 22 | public void scrollMarginsBy(float dx, float dy); |
michael@0 | 23 | public void panZoomStopped(); |
michael@0 | 24 | /** This triggers an (asynchronous) viewport update/redraw. */ |
michael@0 | 25 | public void forceRedraw(DisplayPortMetrics displayPort); |
michael@0 | 26 | |
michael@0 | 27 | public boolean post(Runnable action); |
michael@0 | 28 | public boolean postDelayed(Runnable action, long delayMillis); |
michael@0 | 29 | public void postRenderTask(RenderTask task); |
michael@0 | 30 | public void removeRenderTask(RenderTask task); |
michael@0 | 31 | public Object getLock(); |
michael@0 | 32 | public PointF convertViewPointToLayerPoint(PointF viewPoint); |
michael@0 | 33 | } |