зеркало из https://github.com/mozilla/gecko-dev.git
Bug 989213 part.1 Rename nsDOMKeyNameList.h to mozilla/KeyNameList.h r=smaug
--HG-- rename : dom/events/nsDOMKeyNameList.h => dom/events/KeyNameList.h
This commit is contained in:
Родитель
d6941b3645
Коммит
614e03df2e
|
@ -14,7 +14,6 @@ XPIDL_SOURCES += [
|
|||
XPIDL_MODULE = 'content_events'
|
||||
|
||||
EXPORTS += [
|
||||
'nsDOMKeyNameList.h',
|
||||
'nsEventNameList.h',
|
||||
'nsEventStates.h',
|
||||
'nsIJSEventListener.h',
|
||||
|
@ -29,6 +28,7 @@ EXPORTS.mozilla += [
|
|||
'EventStateManager.h',
|
||||
'IMEStateManager.h',
|
||||
'InternalMutationEvent.h',
|
||||
'KeyNameList.h',
|
||||
]
|
||||
|
||||
EXPORTS.mozilla.dom += [
|
||||
|
|
|
@ -37,7 +37,7 @@ typedef uint16_t Modifiers;
|
|||
|
||||
enum KeyNameIndex
|
||||
{
|
||||
#include "nsDOMKeyNameList.h"
|
||||
#include "mozilla/KeyNameList.h"
|
||||
// If a DOM keyboard event is synthesized by script, this is used. Then,
|
||||
// specified key name should be stored and use it as .key value.
|
||||
KEY_NAME_INDEX_USE_STRING
|
||||
|
|
|
@ -265,27 +265,27 @@ WidgetKeyboardEvent::GetDOMKeyName(KeyNameIndex aKeyNameIndex,
|
|||
#define NS_DEFINE_KEYNAME(aCPPName, aDOMKeyName) \
|
||||
static_assert(sizeof(aDOMKeyName) == MOZ_ARRAY_LENGTH(aDOMKeyName), \
|
||||
"Invalid DOM key name");
|
||||
#include "nsDOMKeyNameList.h"
|
||||
#include "mozilla/KeyNameList.h"
|
||||
#undef NS_DEFINE_KEYNAME
|
||||
|
||||
struct KeyNameTable
|
||||
{
|
||||
#define NS_DEFINE_KEYNAME(aCPPName, aDOMKeyName) \
|
||||
char16_t KEY_STR_NUM(__LINE__)[sizeof(aDOMKeyName)];
|
||||
#include "nsDOMKeyNameList.h"
|
||||
#include "mozilla/KeyNameList.h"
|
||||
#undef NS_DEFINE_KEYNAME
|
||||
};
|
||||
|
||||
static const KeyNameTable kKeyNameTable = {
|
||||
#define NS_DEFINE_KEYNAME(aCPPName, aDOMKeyName) MOZ_UTF16(aDOMKeyName),
|
||||
#include "nsDOMKeyNameList.h"
|
||||
#include "mozilla/KeyNameList.h"
|
||||
#undef NS_DEFINE_KEYNAME
|
||||
};
|
||||
|
||||
static const uint16_t kKeyNameOffsets[] = {
|
||||
#define NS_DEFINE_KEYNAME(aCPPName, aDOMKeyName) \
|
||||
offsetof(struct KeyNameTable, KEY_STR_NUM(__LINE__)) / sizeof(char16_t),
|
||||
#include "nsDOMKeyNameList.h"
|
||||
#include "mozilla/KeyNameList.h"
|
||||
#undef NS_DEFINE_KEYNAME
|
||||
// Include this entry so we can compute lengths easily.
|
||||
sizeof(kKeyNameTable)
|
||||
|
|
Загрузка…
Ссылка в новой задаче