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

Unified Diff: third_party/WebKit/Source/core/input/KeyboardEventManager.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/input/KeyboardEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
index a7076a8a11870013d3ef71eabffff4b4ec02f008..bd8dcda1a7934e6a78a36a6191951eb56b9289e4 100644
--- a/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/KeyboardEventManager.cpp
@@ -58,13 +58,13 @@ WebFocusType focusDirectionForKey(KeyboardEvent* event) {
}
bool mapKeyCodeForScroll(int keyCode,
- PlatformEvent::Modifiers modifiers,
+ WebInputEvent::Modifiers modifiers,
ScrollDirection* scrollDirection,
ScrollGranularity* scrollGranularity) {
- if (modifiers & PlatformEvent::ShiftKey || modifiers & PlatformEvent::MetaKey)
+ if (modifiers & WebInputEvent::ShiftKey || modifiers & WebInputEvent::MetaKey)
return false;
- if (modifiers & PlatformEvent::AltKey) {
+ if (modifiers & WebInputEvent::AltKey) {
// Alt-Up/Down should behave like PageUp/Down on Mac. (Note that Alt-keys
// on other platforms are suppressed due to isSystemKey being set.)
if (keyCode == VKEY_UP)
@@ -75,7 +75,7 @@ bool mapKeyCodeForScroll(int keyCode,
return false;
}
- if (modifiers & PlatformEvent::CtrlKey) {
+ if (modifiers & WebInputEvent::ControlKey) {
// Match FF behavior in the sense that Ctrl+home/end are the only Ctrl
// key combinations which affect scrolling.
if (keyCode != VKEY_HOME && keyCode != VKEY_END)

Powered by Google App Engine
This is Rietveld 408576698