mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1523969 part 1 - Move method definition inline comments to new line in accessible/. r=jamie
Differential Revision: https://phabricator.services.mozilla.com/D21101 --HG-- extra : rebase_source : 5b1dc394aba125c9f14977efc1a71b60455d1bf6
This commit is contained in:
parent
8be18e6253
commit
179b832433
@ -62,12 +62,14 @@ AccessibleNode::AccessibleNode(nsINode* aNode)
|
||||
|
||||
AccessibleNode::~AccessibleNode() {}
|
||||
|
||||
/* virtual */ JSObject* AccessibleNode::WrapObject(
|
||||
JSContext* aCx, JS::Handle<JSObject*> aGivenProto) {
|
||||
/* virtual */
|
||||
JSObject* AccessibleNode::WrapObject(JSContext* aCx,
|
||||
JS::Handle<JSObject*> aGivenProto) {
|
||||
return AccessibleNode_Binding::Wrap(aCx, this, aGivenProto);
|
||||
}
|
||||
|
||||
/* virtual */ ParentObject AccessibleNode::GetParentObject() const {
|
||||
/* virtual */
|
||||
ParentObject AccessibleNode::GetParentObject() const {
|
||||
return mDOMNode->GetParentObject();
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,8 @@
|
||||
namespace mozilla {
|
||||
namespace a11y {
|
||||
|
||||
/* static */ uint32_t DocAccessibleChildBase::InterfacesFor(Accessible* aAcc) {
|
||||
/* static */
|
||||
uint32_t DocAccessibleChildBase::InterfacesFor(Accessible* aAcc) {
|
||||
uint32_t interfaces = 0;
|
||||
if (aAcc->IsHyperText() && aAcc->AsHyperText()->IsTextRole())
|
||||
interfaces |= Interfaces::HYPERTEXT;
|
||||
@ -42,8 +43,9 @@ namespace a11y {
|
||||
return interfaces;
|
||||
}
|
||||
|
||||
/* static */ void DocAccessibleChildBase::SerializeTree(
|
||||
Accessible* aRoot, nsTArray<AccessibleData>& aTree) {
|
||||
/* static */
|
||||
void DocAccessibleChildBase::SerializeTree(Accessible* aRoot,
|
||||
nsTArray<AccessibleData>& aTree) {
|
||||
uint64_t id = reinterpret_cast<uint64_t>(aRoot->UniqueID());
|
||||
#if defined(XP_WIN)
|
||||
int32_t msaaId = AccessibleWrap::GetChildIDFor(aRoot);
|
||||
|
@ -76,12 +76,13 @@ TextChange::GetNew(long aIA2UniqueId, NotNull<IA2TextSegment*> aOutNewSegment) {
|
||||
return SegCopy(*aOutNewSegment, mText);
|
||||
}
|
||||
|
||||
/* static */ BSTR TextChange::BSTRCopy(const BSTR& aIn) {
|
||||
/* static */
|
||||
BSTR TextChange::BSTRCopy(const BSTR& aIn) {
|
||||
return ::SysAllocStringLen(aIn, ::SysStringLen(aIn));
|
||||
}
|
||||
|
||||
/* static */ HRESULT TextChange::SegCopy(IA2TextSegment& aDest,
|
||||
const IA2TextSegment& aSrc) {
|
||||
/* static */
|
||||
HRESULT TextChange::SegCopy(IA2TextSegment& aDest, const IA2TextSegment& aSrc) {
|
||||
aDest = {BSTRCopy(aSrc.text), aSrc.start, aSrc.end};
|
||||
if (aSrc.text && !aDest.text) {
|
||||
return E_OUTOFMEMORY;
|
||||
|
@ -1545,7 +1545,8 @@ void AccessibleWrap::UpdateSystemCaretFor(Accessible* aAccessible) {
|
||||
UpdateSystemCaretFor(caretWnd, caretRect);
|
||||
}
|
||||
|
||||
/* static */ void AccessibleWrap::UpdateSystemCaretFor(
|
||||
/* static */
|
||||
void AccessibleWrap::UpdateSystemCaretFor(
|
||||
ProxyAccessible* aProxy, const LayoutDeviceIntRect& aCaretRect) {
|
||||
::DestroyCaret();
|
||||
|
||||
@ -1555,7 +1556,8 @@ void AccessibleWrap::UpdateSystemCaretFor(Accessible* aAccessible) {
|
||||
UpdateSystemCaretFor(GetHWNDFor(outerDoc), aCaretRect);
|
||||
}
|
||||
|
||||
/* static */ void AccessibleWrap::UpdateSystemCaretFor(
|
||||
/* static */
|
||||
void AccessibleWrap::UpdateSystemCaretFor(
|
||||
HWND aCaretWnd, const LayoutDeviceIntRect& aCaretRect) {
|
||||
if (!aCaretWnd || aCaretRect.IsEmpty()) {
|
||||
return;
|
||||
@ -1705,12 +1707,12 @@ bool AccessibleWrap::DispatchTextChangeToHandler(bool aIsInsert,
|
||||
return SUCCEEDED(hr);
|
||||
}
|
||||
|
||||
/* static */ void AccessibleWrap::AssignChildIDTo(
|
||||
NotNull<sdnAccessible*> aSdnAcc) {
|
||||
/* static */
|
||||
void AccessibleWrap::AssignChildIDTo(NotNull<sdnAccessible*> aSdnAcc) {
|
||||
aSdnAcc->SetUniqueID(sIDGen.GetID());
|
||||
}
|
||||
|
||||
/* static */ void AccessibleWrap::ReleaseChildID(
|
||||
NotNull<sdnAccessible*> aSdnAcc) {
|
||||
/* static */
|
||||
void AccessibleWrap::ReleaseChildID(NotNull<sdnAccessible*> aSdnAcc) {
|
||||
sIDGen.ReleaseID(aSdnAcc);
|
||||
}
|
||||
|
@ -166,7 +166,8 @@ uint32_t Compatibility::sConsumers = Compatibility::UNKNOWN;
|
||||
/**
|
||||
* This function is safe to call multiple times.
|
||||
*/
|
||||
/* static */ void Compatibility::InitConsumers() {
|
||||
/* static */
|
||||
void Compatibility::InitConsumers() {
|
||||
HMODULE jawsHandle = ::GetModuleHandleW(L"jhook");
|
||||
if (jawsHandle) {
|
||||
sConsumers |=
|
||||
@ -203,7 +204,8 @@ uint32_t Compatibility::sConsumers = Compatibility::UNKNOWN;
|
||||
sConsumers &= ~Compatibility::UNKNOWN;
|
||||
}
|
||||
|
||||
/* static */ bool Compatibility::HasKnownNonUiaConsumer() {
|
||||
/* static */
|
||||
bool Compatibility::HasKnownNonUiaConsumer() {
|
||||
InitConsumers();
|
||||
return sConsumers & ~(Compatibility::UNKNOWN | UIAUTOMATION);
|
||||
}
|
||||
|
@ -323,7 +323,8 @@ void MediaEngineTabVideoSource::Draw() {
|
||||
layers::ImageContainer::ASYNCHRONOUS);
|
||||
}
|
||||
|
||||
RefPtr<layers::SharedRGBImage> rgbImage = mImageContainer->CreateSharedRGBImage();
|
||||
RefPtr<layers::SharedRGBImage> rgbImage =
|
||||
mImageContainer->CreateSharedRGBImage();
|
||||
if (!rgbImage) {
|
||||
NS_WARNING("Failed to create SharedRGBImage");
|
||||
return;
|
||||
@ -333,13 +334,15 @@ void MediaEngineTabVideoSource::Draw() {
|
||||
return;
|
||||
}
|
||||
|
||||
RefPtr<layers::TextureClient> texture = rgbImage->GetTextureClient(/* aForwarder */nullptr);
|
||||
RefPtr<layers::TextureClient> texture =
|
||||
rgbImage->GetTextureClient(/* aForwarder */ nullptr);
|
||||
if (!texture) {
|
||||
NS_WARNING("Failed to allocate TextureClient");
|
||||
return;
|
||||
}
|
||||
|
||||
layers::TextureClientAutoLock autoLock(texture, layers::OpenMode::OPEN_WRITE_ONLY);
|
||||
layers::TextureClientAutoLock autoLock(texture,
|
||||
layers::OpenMode::OPEN_WRITE_ONLY);
|
||||
if (!autoLock.Succeeded()) {
|
||||
NS_WARNING("Failed to lock TextureClient");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user