Bug 777468 - Remove unneeded dependency on PanZoomController. r=Cwiiis

This commit is contained in:
Kartikaya Gupta 2013-02-08 09:11:37 -05:00
parent 42a6d75810
commit 5b302ab8f2
2 changed files with 2 additions and 4 deletions

View File

@ -99,7 +99,7 @@ public class PanZoomController
public PanZoomController(PanZoomTarget target, EventDispatcher eventDispatcher) {
mTarget = target;
mSubscroller = new SubdocumentScrollHelper(this, eventDispatcher);
mSubscroller = new SubdocumentScrollHelper(eventDispatcher);
mX = new AxisX(mSubscroller);
mY = new AxisY(mSubscroller);

View File

@ -25,7 +25,6 @@ class SubdocumentScrollHelper implements GeckoEventListener {
private static String MESSAGE_SCROLL = "Gesture:Scroll";
private static String MESSAGE_SCROLL_ACK = "Gesture:ScrollAck";
private final PanZoomController mPanZoomController;
private final Handler mUiHandler;
private final EventDispatcher mEventDispatcher;
@ -49,8 +48,7 @@ class SubdocumentScrollHelper implements GeckoEventListener {
* the subdocument; we use this to decide when we have reached the end of the subdocument. */
private boolean mScrollSucceeded;
SubdocumentScrollHelper(PanZoomController controller, EventDispatcher eventDispatcher) {
mPanZoomController = controller;
SubdocumentScrollHelper(EventDispatcher eventDispatcher) {
// mUiHandler will be bound to the UI thread since that's where this constructor runs
mUiHandler = new Handler();
mPendingDisplacement = new PointF();