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 7745d4951f112add4a9eb67b2e8fd78c43d0335b..0a7e8b5d877e955472542f7e7c6d8fa444ddc875 100644 |
--- a/content/browser/renderer_host/web_input_event_aura.cc |
+++ b/content/browser/renderer_host/web_input_event_aura.cc |
@@ -31,6 +31,21 @@ |
gfx::Point screen_location(event.root_location()); |
spc->ConvertPointToScreen(root, &screen_location); |
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( |