зеркало из https://github.com/mozilla/gecko-dev.git
Bug 763146 - put TextUpdater into a11y namespace, r=surkov
This commit is contained in:
Родитель
0798422bbf
Коммит
974758e274
|
@ -3,12 +3,15 @@
|
||||||
* 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/. */
|
||||||
|
|
||||||
#ifndef TextUpdater_h_
|
#ifndef mozilla_a11y_TextUpdater_h__
|
||||||
#define TextUpdater_h_
|
#define mozilla_a11y_TextUpdater_h__
|
||||||
|
|
||||||
#include "AccEvent.h"
|
#include "AccEvent.h"
|
||||||
#include "HyperTextAccessible.h"
|
#include "HyperTextAccessible.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
namespace a11y {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to find a difference between old and new text and fire text change
|
* Used to find a difference between old and new text and fire text change
|
||||||
* events.
|
* events.
|
||||||
|
@ -19,13 +22,11 @@ public:
|
||||||
/**
|
/**
|
||||||
* Start text of the text leaf update.
|
* Start text of the text leaf update.
|
||||||
*/
|
*/
|
||||||
static void Run(DocAccessible* aDocument,
|
static void Run(DocAccessible* aDocument, TextLeafAccessible* aTextLeaf,
|
||||||
mozilla::a11y::TextLeafAccessible* aTextLeaf,
|
|
||||||
const nsAString& aNewText);
|
const nsAString& aNewText);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TextUpdater(DocAccessible* aDocument,
|
TextUpdater(DocAccessible* aDocument, TextLeafAccessible* aTextLeaf) :
|
||||||
mozilla::a11y::TextLeafAccessible* aTextLeaf) :
|
|
||||||
mDocument(aDocument), mTextLeaf(aTextLeaf), mHyperText(nsnull),
|
mDocument(aDocument), mTextLeaf(aTextLeaf), mHyperText(nsnull),
|
||||||
mTextOffset(-1) { }
|
mTextOffset(-1) { }
|
||||||
|
|
||||||
|
@ -84,9 +85,12 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DocAccessible* mDocument;
|
DocAccessible* mDocument;
|
||||||
mozilla::a11y::TextLeafAccessible* mTextLeaf;
|
TextLeafAccessible* mTextLeaf;
|
||||||
HyperTextAccessible* mHyperText;
|
HyperTextAccessible* mHyperText;
|
||||||
PRInt32 mTextOffset;
|
PRInt32 mTextOffset;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace a11y
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -4,12 +4,15 @@
|
||||||
* 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/. */
|
||||||
|
|
||||||
#ifndef _XULSelectControlAccessible_H_
|
#ifndef mozilla_a11y_XULSelectControlAccessible_h__
|
||||||
#define _XULSelectControlAccessible_H_
|
#define mozilla_a11y_XULSelectControlAccessible_h__
|
||||||
|
|
||||||
#include "AccessibleWrap.h"
|
#include "AccessibleWrap.h"
|
||||||
#include "nsIDOMXULSelectCntrlEl.h"
|
#include "nsIDOMXULSelectCntrlEl.h"
|
||||||
|
|
||||||
|
namespace mozilla {
|
||||||
|
namespace a11y {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The basic implementation of accessible selection for XUL select controls.
|
* The basic implementation of accessible selection for XUL select controls.
|
||||||
*/
|
*/
|
||||||
|
@ -43,5 +46,8 @@ protected:
|
||||||
nsCOMPtr<nsIDOMXULSelectControlElement> mSelectControl;
|
nsCOMPtr<nsIDOMXULSelectControlElement> mSelectControl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace a11y
|
||||||
|
} // namespace mozilla
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче