зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 9d6577fd74f3 (bug 1257319)
This commit is contained in:
Родитель
15ef5dbe45
Коммит
2d9af02ea5
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче