Bug 759309 - de-ns-ify nsHTMLCanvasAccessible, r=surkov

--HG--
rename : accessible/src/html/nsHTMLCanvasAccessible.cpp => accessible/src/html/HTMLCanvasAccessible.cpp
rename : accessible/src/html/nsHTMLCanvasAccessible.h => accessible/src/html/HTMLCanvasAccessible.h
This commit is contained in:
Mark Capella 2012-06-06 06:27:51 -04:00
Родитель b378ab1267
Коммит 476194b061
4 изменённых файлов: 19 добавлений и 13 удалений

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

@ -14,6 +14,7 @@
#endif #endif
#include "DocAccessible-inl.h" #include "DocAccessible-inl.h"
#include "FocusManager.h" #include "FocusManager.h"
#include "HTMLCanvasAccessible.h"
#include "HTMLElementAccessibles.h" #include "HTMLElementAccessibles.h"
#include "HTMLImageMapAccessible.h" #include "HTMLImageMapAccessible.h"
#include "HTMLLinkAccessible.h" #include "HTMLLinkAccessible.h"
@ -24,7 +25,6 @@
#include "nsAccUtils.h" #include "nsAccUtils.h"
#include "nsARIAMap.h" #include "nsARIAMap.h"
#include "nsIAccessibleProvider.h" #include "nsIAccessibleProvider.h"
#include "nsHTMLCanvasAccessible.h"
#include "nsHTMLTableAccessibleWrap.h" #include "nsHTMLTableAccessibleWrap.h"
#include "nsXFormsFormControlsAccessible.h" #include "nsXFormsFormControlsAccessible.h"
#include "nsXFormsWidgetsAccessible.h" #include "nsXFormsWidgetsAccessible.h"
@ -236,7 +236,7 @@ nsAccessibilityService::CreateHTMLCanvasAccessible(nsIContent* aContent,
nsIPresShell* aPresShell) nsIPresShell* aPresShell)
{ {
Accessible* accessible = Accessible* accessible =
new nsHTMLCanvasAccessible(aContent, GetDocAccessible(aPresShell)); new HTMLCanvasAccessible(aContent, GetDocAccessible(aPresShell));
NS_ADDREF(accessible); NS_ADDREF(accessible);
return accessible; return accessible;
} }

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

@ -3,20 +3,20 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsHTMLCanvasAccessible.h" #include "HTMLCanvasAccessible.h"
#include "Role.h" #include "Role.h"
using namespace mozilla::a11y; using namespace mozilla::a11y;
nsHTMLCanvasAccessible:: HTMLCanvasAccessible::
nsHTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc) : HTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc) :
HyperTextAccessible(aContent, aDoc) HyperTextAccessible(aContent, aDoc)
{ {
} }
role role
nsHTMLCanvasAccessible::NativeRole() HTMLCanvasAccessible::NativeRole()
{ {
return roles::CANVAS; return roles::CANVAS;
} }

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

@ -5,20 +5,26 @@
#include "HyperTextAccessible.h" #include "HyperTextAccessible.h"
#ifndef _nsHTMLCanvasAccessible_H_ #ifndef mozilla_a11y_HTMLCanvasAccessible_h__
#define _nsHTMLCanvasAccessible_H_ #define mozilla_a11y_HTMLCanvasAccessible_h__
namespace mozilla {
namespace a11y {
/** /**
* HTML canvas accessible (html:canvas). * HTML canvas accessible (html:canvas).
*/ */
class nsHTMLCanvasAccessible : public HyperTextAccessible class HTMLCanvasAccessible : public HyperTextAccessible
{ {
public: public:
nsHTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc); HTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc);
virtual ~nsHTMLCanvasAccessible() { } virtual ~HTMLCanvasAccessible() { }
// Accessible // Accessible
virtual mozilla::a11y::role NativeRole(); virtual a11y::role NativeRole();
}; };
} // namespace a11y
} // namespace mozilla
#endif #endif

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

@ -17,13 +17,13 @@ LIBXUL_LIBRARY = 1
CPPSRCS = \ CPPSRCS = \
HTMLCanvasAccessible.cpp \
HTMLElementAccessibles.cpp \ HTMLElementAccessibles.cpp \
HTMLFormControlAccessible.cpp \ HTMLFormControlAccessible.cpp \
HTMLImageMapAccessible.cpp \ HTMLImageMapAccessible.cpp \
HTMLLinkAccessible.cpp \ HTMLLinkAccessible.cpp \
HTMLListAccessible.cpp \ HTMLListAccessible.cpp \
HTMLSelectAccessible.cpp \ HTMLSelectAccessible.cpp \
nsHTMLCanvasAccessible.cpp \
nsHTMLTableAccessible.cpp \ nsHTMLTableAccessible.cpp \
$(NULL) $(NULL)