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

Unified Diff: content/browser/renderer_host/web_input_event_aura.cc

Issue 1331013004: [KeyEvent Mac] Move WebInputEventFactory into chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix forward declaration so it is only OBJC Created 5 years, 3 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: content/browser/renderer_host/web_input_event_aura.cc
diff --git a/content/browser/renderer_host/web_input_event_aura.cc b/content/browser/renderer_host/web_input_event_aura.cc
index fe4dfb7fdeee43a4c0da75ac4f9182ee9da94904..249b92efaf97eeda0325238baad96426c1cb06e9 100644
--- a/content/browser/renderer_host/web_input_event_aura.cc
+++ b/content/browser/renderer_host/web_input_event_aura.cc
@@ -33,21 +33,6 @@ gfx::Point GetScreenLocationFromEvent(const ui::LocatedEvent& event) {
return screen_location;
}
-blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers(
- ui::DomCode code) {
- switch (ui::KeycodeConverter::DomCodeToLocation(code)) {
- case ui::DomKeyLocation::LEFT:
- return blink::WebInputEvent::IsLeft;
- case ui::DomKeyLocation::RIGHT:
- return blink::WebInputEvent::IsRight;
- case ui::DomKeyLocation::NUMPAD:
- return blink::WebInputEvent::IsKeyPad;
- case ui::DomKeyLocation::STANDARD:
- break;
- }
- return static_cast<blink::WebInputEvent::Modifiers>(0);
-}
-
blink::WebPointerProperties::PointerType EventPointerTypeToWebPointerType(
ui::EventPointerType pointer_type) {
switch (pointer_type) {

Powered by Google App Engine
This is Rietveld 408576698