mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777468 - Remove unneeded dependency on PanZoomController. r=Cwiiis
This commit is contained in:
parent
42a6d75810
commit
5b302ab8f2
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user