forked from mirrors/gecko-dev
Bug 1127066 - Implement ChromeProcessController::HandleLongTapUp(). r=kats
--HG-- extra : source : 5857a51daa23da0090b92467cc7fe5c23354b981
This commit is contained in:
parent
65a2a78c03
commit
3d67dfb02e
5 changed files with 32 additions and 2 deletions
|
|
@ -2102,7 +2102,9 @@ TabChild::RecvHandleLongTap(const CSSPoint& aPoint, const ScrollableLayerGuid& a
|
||||||
bool
|
bool
|
||||||
TabChild::RecvHandleLongTapUp(const CSSPoint& aPoint, const ScrollableLayerGuid& aGuid)
|
TabChild::RecvHandleLongTapUp(const CSSPoint& aPoint, const ScrollableLayerGuid& aGuid)
|
||||||
{
|
{
|
||||||
RecvHandleSingleTap(aPoint, aGuid);
|
if (mGlobal && mTabChildGlobal) {
|
||||||
|
mAPZEventState->ProcessLongTapUp(aPoint, aGuid, GetPresShellResolution());
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -170,6 +170,16 @@ APZEventState::ProcessLongTap(const nsCOMPtr<nsIDOMWindowUtils>& aUtils,
|
||||||
mContentReceivedInputBlockCallback->Run(aGuid, aInputBlockId, eventHandled);
|
mContentReceivedInputBlockCallback->Run(aGuid, aInputBlockId, eventHandled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
APZEventState::ProcessLongTapUp(const CSSPoint& aPoint,
|
||||||
|
const ScrollableLayerGuid& aGuid,
|
||||||
|
float aPresShellResolution)
|
||||||
|
{
|
||||||
|
APZES_LOG("Handling long tap up at %s\n", Stringify(aPoint).c_str());
|
||||||
|
|
||||||
|
ProcessSingleTap(aPoint, aGuid, aPresShellResolution);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
APZEventState::ProcessTouchEvent(const WidgetTouchEvent& aEvent,
|
APZEventState::ProcessTouchEvent(const WidgetTouchEvent& aEvent,
|
||||||
const ScrollableLayerGuid& aGuid,
|
const ScrollableLayerGuid& aGuid,
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,9 @@ public:
|
||||||
const ScrollableLayerGuid& aGuid,
|
const ScrollableLayerGuid& aGuid,
|
||||||
uint64_t aInputBlockId,
|
uint64_t aInputBlockId,
|
||||||
float aPresShellResolution);
|
float aPresShellResolution);
|
||||||
|
void ProcessLongTapUp(const CSSPoint& aPoint,
|
||||||
|
const ScrollableLayerGuid& aGuid,
|
||||||
|
float aPresShellResolution);
|
||||||
void ProcessTouchEvent(const WidgetTouchEvent& aEvent,
|
void ProcessTouchEvent(const WidgetTouchEvent& aEvent,
|
||||||
const ScrollableLayerGuid& aGuid,
|
const ScrollableLayerGuid& aGuid,
|
||||||
uint64_t aInputBlockId);
|
uint64_t aInputBlockId);
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,21 @@ ChromeProcessController::HandleLongTap(const mozilla::CSSPoint& aPoint, int32_t
|
||||||
aInputBlockId, GetPresShellResolution());
|
aInputBlockId, GetPresShellResolution());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ChromeProcessController::HandleLongTapUp(const CSSPoint& aPoint, int32_t aModifiers,
|
||||||
|
const ScrollableLayerGuid& aGuid)
|
||||||
|
{
|
||||||
|
if (MessageLoop::current() != mUILoop) {
|
||||||
|
mUILoop->PostTask(
|
||||||
|
FROM_HERE,
|
||||||
|
NewRunnableMethod(this, &ChromeProcessController::HandleLongTapUp,
|
||||||
|
aPoint, aModifiers, aGuid));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
mAPZEventState->ProcessLongTapUp(aPoint, aGuid, GetPresShellResolution());
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ChromeProcessController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
|
ChromeProcessController::NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
|
||||||
APZStateChange aChange,
|
APZStateChange aChange,
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public:
|
||||||
const ScrollableLayerGuid& aGuid,
|
const ScrollableLayerGuid& aGuid,
|
||||||
uint64_t aInputBlockId) MOZ_OVERRIDE;
|
uint64_t aInputBlockId) MOZ_OVERRIDE;
|
||||||
virtual void HandleLongTapUp(const CSSPoint& aPoint, int32_t aModifiers,
|
virtual void HandleLongTapUp(const CSSPoint& aPoint, int32_t aModifiers,
|
||||||
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE {}
|
const ScrollableLayerGuid& aGuid) MOZ_OVERRIDE;
|
||||||
virtual void SendAsyncScrollDOMEvent(bool aIsRoot, const mozilla::CSSRect &aContentRect,
|
virtual void SendAsyncScrollDOMEvent(bool aIsRoot, const mozilla::CSSRect &aContentRect,
|
||||||
const mozilla::CSSSize &aScrollableSize) MOZ_OVERRIDE {}
|
const mozilla::CSSSize &aScrollableSize) MOZ_OVERRIDE {}
|
||||||
virtual void NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
|
virtual void NotifyAPZStateChange(const ScrollableLayerGuid& aGuid,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue