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

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

Issue 2655873003: Remove PlatformEvent it is no longer used. (Closed)
Patch Set: Remove PlatformEvent it is no longer used. Created 3 years, 10 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 e7581e89641e43fe8bd7ffc3d7428ece99f9be6b..806a2403fdcc27f114dc5517e9738457a82b977b 100644
--- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -95,7 +95,7 @@ KeyboardEvent::KeyboardEvent(const WebKeyboardEvent& key,
true,
domWindow,
0,
- static_cast<PlatformEvent::Modifiers>(key.modifiers()),
+ static_cast<WebInputEvent::Modifiers>(key.modifiers()),
TimeTicks::FromSeconds(key.timeStampSeconds()),
domWindow
? domWindow->getInputDeviceCapabilities()->firesTouchEvents(false)
@@ -117,7 +117,7 @@ KeyboardEvent::KeyboardEvent(const AtomicString& eventType,
m_location(initializer.location()),
m_isComposing(initializer.isComposing()) {
if (initializer.repeat())
- m_modifiers |= PlatformEvent::IsAutoRepeat;
+ m_modifiers |= WebInputEvent::IsAutoRepeat;
initLocationModifiers(initializer.location());
}
@@ -196,13 +196,13 @@ int KeyboardEvent::which() const {
void KeyboardEvent::initLocationModifiers(unsigned location) {
switch (location) {
case KeyboardEvent::kDomKeyLocationNumpad:
- m_modifiers |= PlatformEvent::IsKeyPad;
+ m_modifiers |= WebInputEvent::IsKeyPad;
break;
case KeyboardEvent::kDomKeyLocationLeft:
- m_modifiers |= PlatformEvent::IsLeft;
+ m_modifiers |= WebInputEvent::IsLeft;
break;
case KeyboardEvent::kDomKeyLocationRight:
- m_modifiers |= PlatformEvent::IsRight;
+ m_modifiers |= WebInputEvent::IsRight;
break;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.h ('k') | third_party/WebKit/Source/core/events/MouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698