зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1304449: Part 2 - Modify ContentParent to obtain/release MSAA ids; r=jimm
MozReview-Commit-ID: 4FJVpe3I1Qt --HG-- extra : rebase_source : a3376503157afdb4f6b2ed0dd808287a61554852
This commit is contained in:
Родитель
3dd6d33ed9
Коммит
5a833e9437
|
@ -34,6 +34,9 @@
|
|||
#include "IHistory.h"
|
||||
#include "imgIContainer.h"
|
||||
#include "mozIApplication.h"
|
||||
#if defined(XP_WIN) && defined(ACCESSIBILITY)
|
||||
#include "mozilla/a11y/AccessibleWrap.h"
|
||||
#endif
|
||||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/StyleSheetInlines.h"
|
||||
#include "mozilla/DataStorage.h"
|
||||
|
@ -1954,6 +1957,10 @@ ContentParent::ActorDestroy(ActorDestroyReason why)
|
|||
}
|
||||
|
||||
mBlobURLs.Clear();
|
||||
|
||||
#if defined(XP_WIN32) && defined(ACCESSIBILITY)
|
||||
a11y::AccessibleWrap::ReleaseContentProcessIdFor(ChildID());
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -5348,6 +5355,18 @@ ContentParent::RecvUnstoreAndBroadcastBlobURLUnregistration(const nsCString& aUR
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ContentParent::RecvGetA11yContentId(uint32_t* aContentId)
|
||||
{
|
||||
#if defined(XP_WIN32) && defined(ACCESSIBILITY)
|
||||
*aContentId = a11y::AccessibleWrap::GetContentProcessIdFor(ChildID());
|
||||
MOZ_ASSERT(*aContentId);
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace dom
|
||||
} // namespace mozilla
|
||||
|
||||
|
|
|
@ -565,6 +565,9 @@ public:
|
|||
virtual bool
|
||||
RecvUnstoreAndBroadcastBlobURLUnregistration(const nsCString& aURI) override;
|
||||
|
||||
virtual bool
|
||||
RecvGetA11yContentId(uint32_t* aContentId) override;
|
||||
|
||||
virtual int32_t Pid() const override;
|
||||
|
||||
// Use the PHangMonitor channel to ask the child to repaint a tab.
|
||||
|
|
|
@ -1236,6 +1236,8 @@ parent:
|
|||
async AccumulateChildHistogram(Accumulation[] accumulations);
|
||||
async AccumulateChildKeyedHistogram(KeyedAccumulation[] accumulations);
|
||||
|
||||
sync GetA11yContentId() returns (uint32_t aContentId);
|
||||
|
||||
both:
|
||||
async AsyncMessage(nsString aMessage, CpowEntry[] aCpows,
|
||||
Principal aPrincipal, ClonedMessageData aData);
|
||||
|
|
Загрузка…
Ссылка в новой задаче