| 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 8232bd6695f337b0cbb5ac9d0a26c7618a4ae23c..32a49f95685630fca2b74af28af023249b9c7509 100644
|
| --- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| @@ -29,7 +29,7 @@
|
|
|
| namespace blink {
|
|
|
| -static inline const AtomicString& eventTypeForKeyboardEventType(PlatformEvent::Type type)
|
| +static inline const AtomicString& eventTypeForKeyboardEventType(PlatformEvent::EventType type)
|
| {
|
| switch (type) {
|
| case PlatformEvent::KeyUp:
|
| @@ -52,9 +52,9 @@ static inline KeyboardEvent::KeyLocationCode keyLocationCode(const PlatformKeybo
|
| {
|
| if (key.isKeypad())
|
| return KeyboardEvent::DOM_KEY_LOCATION_NUMPAD;
|
| - if (key.modifiers() & PlatformEvent::IsLeft)
|
| + if (key.getModifiers() & PlatformEvent::IsLeft)
|
| return KeyboardEvent::DOM_KEY_LOCATION_LEFT;
|
| - if (key.modifiers() & PlatformEvent::IsRight)
|
| + if (key.getModifiers() & PlatformEvent::IsRight)
|
| return KeyboardEvent::DOM_KEY_LOCATION_RIGHT;
|
| return KeyboardEvent::DOM_KEY_LOCATION_STANDARD;
|
| }
|
| @@ -72,7 +72,7 @@ KeyboardEvent::KeyboardEvent()
|
| }
|
|
|
| KeyboardEvent::KeyboardEvent(const PlatformKeyboardEvent& key, AbstractView* view)
|
| - : UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), true, true, view, 0, key.modifiers(), key.timestamp(), InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities())
|
| + : UIEventWithKeyState(eventTypeForKeyboardEventType(key.type()), true, true, view, 0, key.getModifiers(), key.timestamp(), InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities())
|
| , m_keyEvent(adoptPtr(new PlatformKeyboardEvent(key)))
|
| , m_keyIdentifier(key.keyIdentifier())
|
| , m_code(key.code())
|
|
|