Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Unified Diff: third_party/WebKit/Source/core/events/KeyboardEvent.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/KeyboardEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
index c11b3bd83336b08688f82ca4ec09a6033c710da8..bb62aefbd641de68d57f3c323449e621f30330e2 100644
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -52,12 +52,12 @@ static inline const AtomicString& eventTypeForKeyboardEventType(PlatformEvent::E
static inline KeyboardEvent::KeyLocationCode keyLocationCode(const PlatformKeyboardEvent& key)
{
if (key.isKeypad())
- return KeyboardEvent::DOM_KEY_LOCATION_NUMPAD;
+ return KeyboardEvent::kDomKeyLocationNumpad;
if (key.getModifiers() & PlatformEvent::IsLeft)
- return KeyboardEvent::DOM_KEY_LOCATION_LEFT;
+ return KeyboardEvent::kDomKeyLocationLeft;
if (key.getModifiers() & PlatformEvent::IsRight)
- return KeyboardEvent::DOM_KEY_LOCATION_RIGHT;
- return KeyboardEvent::DOM_KEY_LOCATION_STANDARD;
+ return KeyboardEvent::kDomKeyLocationRight;
+ return KeyboardEvent::kDomKeyLocationStandard;
}
KeyboardEvent* KeyboardEvent::create(ScriptState* scriptState, const AtomicString& type, const KeyboardEventInit& initializer)
@@ -68,7 +68,7 @@ KeyboardEvent* KeyboardEvent::create(ScriptState* scriptState, const AtomicStrin
}
KeyboardEvent::KeyboardEvent()
- : m_location(DOM_KEY_LOCATION_STANDARD)
+ : m_location(kDomKeyLocationStandard)
{
}
@@ -177,13 +177,13 @@ int KeyboardEvent::which() const
void KeyboardEvent::initLocationModifiers(unsigned location)
{
switch (location) {
- case KeyboardEvent::DOM_KEY_LOCATION_NUMPAD:
+ case KeyboardEvent::kDomKeyLocationNumpad:
m_modifiers |= PlatformEvent::IsKeyPad;
break;
- case KeyboardEvent::DOM_KEY_LOCATION_LEFT:
+ case KeyboardEvent::kDomKeyLocationLeft:
m_modifiers |= PlatformEvent::IsLeft;
break;
- case KeyboardEvent::DOM_KEY_LOCATION_RIGHT:
+ case KeyboardEvent::kDomKeyLocationRight:
m_modifiers |= PlatformEvent::IsRight;
break;
}
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.h ('k') | third_party/WebKit/Source/core/events/MutationEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698