зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1660109
- Add BoundsForRange sync ipc call. r=Jamie,nika
Differential Revision: https://phabricator.services.mozilla.com/D87669
This commit is contained in:
Родитель
341aec03de
Коммит
1b3266b806
|
@ -115,6 +115,13 @@ mozilla::ipc::IPCResult DocAccessiblePlatformExtChild::RecvTextForRange(
|
|||
return IPC_OK();
|
||||
}
|
||||
|
||||
mozilla::ipc::IPCResult DocAccessiblePlatformExtChild::RecvBoundsForRange(
|
||||
const uint64_t& aID, const int32_t& aStartOffset,
|
||||
const uint64_t& aEndContainer, const int32_t& aEndOffset,
|
||||
nsIntRect* aBounds) {
|
||||
return IPC_OK();
|
||||
}
|
||||
|
||||
HyperTextAccessibleWrap*
|
||||
DocAccessiblePlatformExtChild::IdToHyperTextAccessibleWrap(
|
||||
const uint64_t& aID) const {
|
||||
|
|
|
@ -40,6 +40,12 @@ class DocAccessiblePlatformExtChild : public PDocAccessiblePlatformExtChild {
|
|||
const int32_t& aEndOffset,
|
||||
nsString* aText);
|
||||
|
||||
mozilla::ipc::IPCResult RecvBoundsForRange(const uint64_t& aID,
|
||||
const int32_t& aStartOffset,
|
||||
const uint64_t& aEndContainer,
|
||||
const int32_t& aEndOffset,
|
||||
nsIntRect* aBounds);
|
||||
|
||||
private:
|
||||
HyperTextAccessibleWrap* IdToHyperTextAccessibleWrap(
|
||||
const uint64_t& aID) const;
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
include protocol PDocAccessible;
|
||||
|
||||
using nsIntRect from "nsRect.h";
|
||||
|
||||
namespace mozilla {
|
||||
namespace a11y {
|
||||
|
||||
|
@ -31,6 +33,9 @@ child:
|
|||
|
||||
nested(inside_sync) sync TextForRange(uint64_t aID, int32_t aStartOffset, uint64_t aEndContainer, int32_t aEndOffset)
|
||||
returns(nsString aText);
|
||||
|
||||
nested(inside_sync) sync BoundsForRange(uint64_t aID, int32_t aStartOffset, uint64_t aEndContainer, int32_t aEndOffset)
|
||||
returns(nsIntRect aRetVal);
|
||||
};
|
||||
|
||||
} // namespace a11y
|
||||
|
|
|
@ -629,6 +629,9 @@ platform = mac
|
|||
[PDocAccessiblePlatformExt::TextForRange]
|
||||
description = Retrieve flattened string for text range. Platform API is synchronous, so this needs to be too.
|
||||
platform = mac
|
||||
[PDocAccessiblePlatformExt::BoundsForRange]
|
||||
description = Retrieve geometric bounds for text range. Platform API is synchronous, so this needs to be too.
|
||||
platform = mac
|
||||
|
||||
# Plugins
|
||||
[PPluginWidget::Create]
|
||||
|
|
Загрузка…
Ссылка в новой задаче