зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b378ab1267
Коммит
476194b061
|
@ -14,6 +14,7 @@
|
|||
#endif
|
||||
#include "DocAccessible-inl.h"
|
||||
#include "FocusManager.h"
|
||||
#include "HTMLCanvasAccessible.h"
|
||||
#include "HTMLElementAccessibles.h"
|
||||
#include "HTMLImageMapAccessible.h"
|
||||
#include "HTMLLinkAccessible.h"
|
||||
|
@ -24,7 +25,6 @@
|
|||
#include "nsAccUtils.h"
|
||||
#include "nsARIAMap.h"
|
||||
#include "nsIAccessibleProvider.h"
|
||||
#include "nsHTMLCanvasAccessible.h"
|
||||
#include "nsHTMLTableAccessibleWrap.h"
|
||||
#include "nsXFormsFormControlsAccessible.h"
|
||||
#include "nsXFormsWidgetsAccessible.h"
|
||||
|
@ -236,7 +236,7 @@ nsAccessibilityService::CreateHTMLCanvasAccessible(nsIContent* aContent,
|
|||
nsIPresShell* aPresShell)
|
||||
{
|
||||
Accessible* accessible =
|
||||
new nsHTMLCanvasAccessible(aContent, GetDocAccessible(aPresShell));
|
||||
new HTMLCanvasAccessible(aContent, GetDocAccessible(aPresShell));
|
||||
NS_ADDREF(accessible);
|
||||
return accessible;
|
||||
}
|
||||
|
|
|
@ -3,20 +3,20 @@
|
|||
* 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 "nsHTMLCanvasAccessible.h"
|
||||
#include "HTMLCanvasAccessible.h"
|
||||
|
||||
#include "Role.h"
|
||||
|
||||
using namespace mozilla::a11y;
|
||||
|
||||
nsHTMLCanvasAccessible::
|
||||
nsHTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc) :
|
||||
HTMLCanvasAccessible::
|
||||
HTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc) :
|
||||
HyperTextAccessible(aContent, aDoc)
|
||||
{
|
||||
}
|
||||
|
||||
role
|
||||
nsHTMLCanvasAccessible::NativeRole()
|
||||
HTMLCanvasAccessible::NativeRole()
|
||||
{
|
||||
return roles::CANVAS;
|
||||
}
|
|
@ -5,20 +5,26 @@
|
|||
|
||||
#include "HyperTextAccessible.h"
|
||||
|
||||
#ifndef _nsHTMLCanvasAccessible_H_
|
||||
#define _nsHTMLCanvasAccessible_H_
|
||||
#ifndef mozilla_a11y_HTMLCanvasAccessible_h__
|
||||
#define mozilla_a11y_HTMLCanvasAccessible_h__
|
||||
|
||||
namespace mozilla {
|
||||
namespace a11y {
|
||||
|
||||
/**
|
||||
* HTML canvas accessible (html:canvas).
|
||||
*/
|
||||
class nsHTMLCanvasAccessible : public HyperTextAccessible
|
||||
class HTMLCanvasAccessible : public HyperTextAccessible
|
||||
{
|
||||
public:
|
||||
nsHTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
||||
virtual ~nsHTMLCanvasAccessible() { }
|
||||
HTMLCanvasAccessible(nsIContent* aContent, DocAccessible* aDoc);
|
||||
virtual ~HTMLCanvasAccessible() { }
|
||||
|
||||
// Accessible
|
||||
virtual mozilla::a11y::role NativeRole();
|
||||
virtual a11y::role NativeRole();
|
||||
};
|
||||
|
||||
} // namespace a11y
|
||||
} // namespace mozilla
|
||||
|
||||
#endif
|
|
@ -17,13 +17,13 @@ LIBXUL_LIBRARY = 1
|
|||
|
||||
|
||||
CPPSRCS = \
|
||||
HTMLCanvasAccessible.cpp \
|
||||
HTMLElementAccessibles.cpp \
|
||||
HTMLFormControlAccessible.cpp \
|
||||
HTMLImageMapAccessible.cpp \
|
||||
HTMLLinkAccessible.cpp \
|
||||
HTMLListAccessible.cpp \
|
||||
HTMLSelectAccessible.cpp \
|
||||
nsHTMLCanvasAccessible.cpp \
|
||||
nsHTMLTableAccessible.cpp \
|
||||
$(NULL)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче