Commit 036997bb authored by Tatiana Meshkova's avatar Tatiana Meshkova

Sync API update

parent 92cc2aa9
......@@ -91,6 +91,11 @@ EmbedTouchListener::HandleEvent(nsIDOMEvent* aEvent)
void EmbedTouchListener::RequestContentRepaint(const mozilla::layers::FrameMetrics& aMetrics)
{
// LOGT("Metr off[%g,%g], vp[%g,%g,%g,%g], scrRe[%g,%g,%g,%g], res[%g,%g]",
// aMetrics.mScrollOffset.x, aMetrics.mScrollOffset.y,
// aMetrics.mViewport.x, aMetrics.mViewport.y, aMetrics.mViewport.width, aMetrics.mViewport.height,
// aMetrics.mScrollableRect.x, aMetrics.mScrollableRect.y, aMetrics.mScrollableRect.width, aMetrics.mScrollableRect.height,
// aMetrics.mResolution.width, aMetrics.mResolution.height);
mGotViewPortUpdate = true;
mViewport = gfx::Rect(aMetrics.mScrollOffset.x, aMetrics.mScrollOffset.y,
aMetrics.mViewport.width, aMetrics.mViewport.height);
......@@ -436,3 +441,7 @@ EmbedTouchListener::GetFocusedInput(nsIDOMElement* *aElement,
}
return NS_ERROR_FAILURE;
}
void EmbedTouchListener::ScrollUpdate(const mozilla::gfx::Point&, float)
{
}
......@@ -40,6 +40,7 @@ public:
virtual void HandleSingleTap(const nsIntPoint&);
virtual void HandleLongTap(const nsIntPoint&);
virtual void SendAsyncScrollDOMEvent(const mozilla::gfx::Rect&, const mozilla::gfx::Size&);
virtual void ScrollUpdate(const mozilla::gfx::Point&, float);
nsCOMPtr<nsIDOMWindow> DOMWindow;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment