mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1241453 - fire nsIAccessibleCaretMoveEvents for proxies r=davidb
This commit is contained in:
parent
b4f2ecfb68
commit
1692f47aec
@ -206,6 +206,20 @@ DocAccessibleParent::RecvCaretMoveEvent(const uint64_t& aID, const int32_t& aOff
|
|||||||
}
|
}
|
||||||
|
|
||||||
ProxyCaretMoveEvent(proxy, aOffset);
|
ProxyCaretMoveEvent(proxy, aOffset);
|
||||||
|
|
||||||
|
if (!nsCoreUtils::AccEventObserversExist()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
xpcAccessibleGeneric* xpcAcc = GetXPCAccessible(proxy);
|
||||||
|
xpcAccessibleDocument* doc = GetAccService()->GetXPCDocument(this);
|
||||||
|
nsIDOMNode* node = nullptr;
|
||||||
|
bool fromUser = true; // XXX fix me
|
||||||
|
uint32_t type = nsIAccessibleEvent::EVENT_TEXT_CARET_MOVED;
|
||||||
|
RefPtr<xpcAccCaretMoveEvent> event =
|
||||||
|
new xpcAccCaretMoveEvent(type, xpcAcc, doc, node, fromUser, aOffset);
|
||||||
|
nsCoreUtils::DispatchAccEvent(Move(event));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user