Add ICU message format support
[chromium-blink-merge.git] / content / browser / renderer_host / input / web_input_event_util_posix.cc
blob1eabf91a314f9702cb7772c950fd43ef7adf4377
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.
5 #include "content/browser/renderer_host/input/web_input_event_util_posix.h"
7 namespace content {
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);
27 } // namespace content