Backed out changeset 9d6577fd74f3 (bug 1257319)

This commit is contained in:
Carsten "Tomcat" Book 2016-03-23 10:55:08 +01:00
parent 15ef5dbe45
commit 2d9af02ea5

View File

@ -70,17 +70,9 @@ AndroidContentController::HandleSingleTap(const CSSPoint& aPoint,
}
CSSIntPoint rounded = RoundedToInt(point);
nsAppShell::PostEvent([rounded] {
nsCOMPtr<nsIObserverService> obsServ =
mozilla::services::GetObserverService();
if (!obsServ) {
return;
}
nsPrintfCString data("{\"x\":%d,\"y\":%d}", rounded.x, rounded.y);
obsServ->NotifyObservers(nullptr, "Gesture:SingleTap",
NS_ConvertASCIItoUTF16(data).get());
});
nsCString data = nsPrintfCString("{ \"x\": %d, \"y\": %d }", rounded.x, rounded.y);
nsAppShell::PostEvent(AndroidGeckoEvent::MakeBroadcastEvent(
NS_LITERAL_CSTRING("Gesture:SingleTap"), data));
}
ChromeProcessController::HandleSingleTap(aPoint, aModifiers, aGuid);