Bug 762396 - Replace do_QueryObject with static_cast in CAccessibleEditableText; r=tbsaunde

--HG--
rename : accessible/src/msaa/CAccessibleEditableText.cpp => accessible/src/msaa/ia2AccessibleEditableText.cpp
rename : accessible/src/msaa/CAccessibleEditableText.h => accessible/src/msaa/ia2AccessibleEditableText.h
This commit is contained in:
Andrew Quartey 2012-06-16 18:02:54 +12:00
Родитель db9cdfb8c7
Коммит 83d705b089
5 изменённых файлов: 23 добавлений и 23 удалений

Просмотреть файл

@ -15,7 +15,7 @@ NS_IMPL_ISUPPORTS_INHERITED0(HyperTextAccessibleWrap,
IMPL_IUNKNOWN_INHERITED2(HyperTextAccessibleWrap,
AccessibleWrap,
ia2AccessibleHypertext,
CAccessibleEditableText);
ia2AccessibleEditableText);
nsresult
HyperTextAccessibleWrap::HandleAccEvent(AccEvent* aEvent)

Просмотреть файл

@ -9,12 +9,12 @@
#define mozilla_a11y_HyperTextAccessibleWrap_h__
#include "HyperTextAccessible.h"
#include "CAccessibleEditableText.h"
#include "ia2AccessibleEditableText.h"
#include "ia2AccessibleHyperText.h"
class HyperTextAccessibleWrap : public HyperTextAccessible,
public ia2AccessibleHypertext,
public CAccessibleEditableText
public ia2AccessibleEditableText
{
public:
HyperTextAccessibleWrap(nsIContent* aContent, DocAccessible* aDoc) :

Просмотреть файл

@ -26,7 +26,6 @@ CPPSRCS = \
nsAccessNodeWrap.cpp \
nsHTMLWin32ObjectAccessible.cpp \
nsWinUtils.cpp \
CAccessibleEditableText.cpp \
CAccessibleHyperlink.cpp \
CAccessibleTable.cpp \
CAccessibleTableCell.cpp \
@ -35,6 +34,7 @@ CPPSRCS = \
EnumVariant.cpp \
ia2AccessibleAction.cpp \
ia2AccessibleComponent.cpp \
ia2AccessibleEditableText.cpp \
ia2AccessibleImage.cpp \
ia2AccessibleHypertext.cpp \
ia2AccessibleRelation.cpp \

Просмотреть файл

@ -5,10 +5,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "CAccessibleEditableText.h"
#include "ia2AccessibleEditableText.h"
#include "AccessibleEditableText_i.c"
#include "HyperTextAccessible.h"
#include "HyperTextAccessibleWrap.h"
#include "nsCOMPtr.h"
#include "nsString.h"
@ -16,7 +16,7 @@
// IUnknown
STDMETHODIMP
CAccessibleEditableText::QueryInterface(REFIID iid, void** ppv)
ia2AccessibleEditableText::QueryInterface(REFIID iid, void** ppv)
{
*ppv = NULL;
@ -35,10 +35,10 @@ CAccessibleEditableText::QueryInterface(REFIID iid, void** ppv)
// IAccessibleEditableText
STDMETHODIMP
CAccessibleEditableText::copyText(long aStartOffset, long aEndOffset)
ia2AccessibleEditableText::copyText(long aStartOffset, long aEndOffset)
{
__try {
nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this));
HyperTextAccessible* textAcc = static_cast<HyperTextAccessibleWrap*>(this);
if (textAcc->IsDefunct())
return CO_E_OBJNOTCONNECTED;
@ -50,10 +50,10 @@ __try {
}
STDMETHODIMP
CAccessibleEditableText::deleteText(long aStartOffset, long aEndOffset)
ia2AccessibleEditableText::deleteText(long aStartOffset, long aEndOffset)
{
__try {
nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this));
HyperTextAccessible* textAcc = static_cast<HyperTextAccessibleWrap*>(this);
if (textAcc->IsDefunct())
return CO_E_OBJNOTCONNECTED;
@ -65,10 +65,10 @@ __try {
}
STDMETHODIMP
CAccessibleEditableText::insertText(long aOffset, BSTR *aText)
ia2AccessibleEditableText::insertText(long aOffset, BSTR *aText)
{
__try {
nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this));
HyperTextAccessible* textAcc = static_cast<HyperTextAccessibleWrap*>(this);
if (textAcc->IsDefunct())
return CO_E_OBJNOTCONNECTED;
@ -83,10 +83,10 @@ __try {
}
STDMETHODIMP
CAccessibleEditableText::cutText(long aStartOffset, long aEndOffset)
ia2AccessibleEditableText::cutText(long aStartOffset, long aEndOffset)
{
__try {
nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this));
HyperTextAccessible* textAcc = static_cast<HyperTextAccessibleWrap*>(this);
if (textAcc->IsDefunct())
return CO_E_OBJNOTCONNECTED;
@ -98,10 +98,10 @@ __try {
}
STDMETHODIMP
CAccessibleEditableText::pasteText(long aOffset)
ia2AccessibleEditableText::pasteText(long aOffset)
{
__try {
nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this));
HyperTextAccessible* textAcc = static_cast<HyperTextAccessibleWrap*>(this);
if (textAcc->IsDefunct())
return CO_E_OBJNOTCONNECTED;
@ -113,11 +113,11 @@ __try {
}
STDMETHODIMP
CAccessibleEditableText::replaceText(long aStartOffset, long aEndOffset,
BSTR *aText)
ia2AccessibleEditableText::replaceText(long aStartOffset, long aEndOffset,
BSTR *aText)
{
__try {
nsRefPtr<HyperTextAccessible> textAcc(do_QueryObject(this));
HyperTextAccessible* textAcc = static_cast<HyperTextAccessibleWrap*>(this);
if (textAcc->IsDefunct())
return CO_E_OBJNOTCONNECTED;
@ -136,8 +136,8 @@ __try {
}
STDMETHODIMP
CAccessibleEditableText::setAttributes(long aStartOffset, long aEndOffset,
BSTR *aAttributes)
ia2AccessibleEditableText::setAttributes(long aStartOffset, long aEndOffset,
BSTR *aAttributes)
{
__try {

Просмотреть файл

@ -13,7 +13,7 @@
#include "AccessibleEditableText.h"
class CAccessibleEditableText: public IAccessibleEditableText
class ia2AccessibleEditableText: public IAccessibleEditableText
{
public: