Skip to content

Commit

Permalink
bug 1162654 - allow proxies to implement the document interface r=davidb
Browse files Browse the repository at this point in the history
  • Loading branch information
tbsaunde committed May 8, 2015
1 parent 15080a8 commit c4d578b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions accessible/atk/AccessibleWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,9 @@ GetInterfacesForProxy(ProxyAccessible* aProxy, uint32_t aInterfaces)
if (aInterfaces & Interfaces::IMAGE)
interfaces |= MAI_INTERFACE_IMAGE;

if (aInterfaces & Interfaces::DOCUMENT)
interfaces |= MAI_INTERFACE_DOCUMENT;

return interfaces;
}

Expand Down
3 changes: 3 additions & 0 deletions accessible/ipc/DocAccessibleChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ InterfacesFor(Accessible* aAcc)
if (aAcc->IsTableCell())
interfaces |= Interfaces::TABLECELL;

if (aAcc->IsDoc())
interfaces |= Interfaces::DOCUMENT;

return interfaces;
}

Expand Down
1 change: 1 addition & 0 deletions accessible/ipc/ProxyAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ enum Interfaces
VALUE = 8,
TABLE = 16,
TABLECELL = 32,
DOCUMENT = 64,
};

}
Expand Down

0 comments on commit c4d578b

Please sign in to comment.