| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/browser/renderer_host/input/web_input_event_util_posix.h" | |
| 6 | |
| 7 namespace content { | |
| 8 | |
| 9 blink::WebInputEvent::Modifiers GetLocationModifiersFromWindowsKeyCode( | |
| 10 ui::KeyboardCode key_code) { | |
| 11 switch (key_code) { | |
| 12 case ui::VKEY_LCONTROL: | |
| 13 case ui::VKEY_LSHIFT: | |
| 14 case ui::VKEY_LMENU: | |
| 15 case ui::VKEY_LWIN: | |
| 16 return blink::WebKeyboardEvent::IsLeft; | |
| 17 case ui::VKEY_RCONTROL: | |
| 18 case ui::VKEY_RSHIFT: | |
| 19 case ui::VKEY_RMENU: | |
| 20 case ui::VKEY_RWIN: | |
| 21 return blink::WebKeyboardEvent::IsRight; | |
| 22 default: | |
| 23 return static_cast<blink::WebInputEvent::Modifiers>(0); | |
| 24 } | |
| 25 } | |
| 26 | |
| 27 } // namespace content | |
| OLD | NEW |