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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_util_posix.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/input/web_input_event_util_posix.h" 5 #include "content/browser/renderer_host/input/web_input_event_util_posix.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 ui::KeyboardCode GetWindowsKeyCodeWithoutLocation(ui::KeyboardCode key_code) { 9 ui::KeyboardCode GetWindowsKeyCodeWithoutLocation(ui::KeyboardCode key_code) {
10 switch (key_code) { 10 switch (key_code) {
11 case ui::VKEY_LCONTROL: 11 case ui::VKEY_LCONTROL:
12 case ui::VKEY_RCONTROL: 12 case ui::VKEY_RCONTROL:
13 return ui::VKEY_CONTROL; 13 return ui::VKEY_CONTROL;
14 case ui::VKEY_LSHIFT: 14 case ui::VKEY_LSHIFT:
15 case ui::VKEY_RSHIFT: 15 case ui::VKEY_RSHIFT:
16 return ui::VKEY_SHIFT; 16 return ui::VKEY_SHIFT;
17 case ui::VKEY_LMENU: 17 case ui::VKEY_LMENU:
18 case ui::VKEY_RMENU: 18 case ui::VKEY_RMENU:
19 return ui::VKEY_MENU; 19 return ui::VKEY_MENU;
20 default: 20 default:
21 return key_code; 21 return key_code;
22 } 22 }
23 } 23 }
24 24
25 WebKit::WebInputEvent::Modifiers GetLocationModifiersFromWindowsKeyCode( 25 blink::WebInputEvent::Modifiers GetLocationModifiersFromWindowsKeyCode(
26 ui::KeyboardCode key_code) { 26 ui::KeyboardCode key_code) {
27 switch (key_code) { 27 switch (key_code) {
28 case ui::VKEY_LCONTROL: 28 case ui::VKEY_LCONTROL:
29 case ui::VKEY_LSHIFT: 29 case ui::VKEY_LSHIFT:
30 case ui::VKEY_LMENU: 30 case ui::VKEY_LMENU:
31 case ui::VKEY_LWIN: 31 case ui::VKEY_LWIN:
32 return WebKit::WebKeyboardEvent::IsLeft; 32 return blink::WebKeyboardEvent::IsLeft;
33 case ui::VKEY_RCONTROL: 33 case ui::VKEY_RCONTROL:
34 case ui::VKEY_RSHIFT: 34 case ui::VKEY_RSHIFT:
35 case ui::VKEY_RMENU: 35 case ui::VKEY_RMENU:
36 case ui::VKEY_RWIN: 36 case ui::VKEY_RWIN:
37 return WebKit::WebKeyboardEvent::IsRight; 37 return blink::WebKeyboardEvent::IsRight;
38 default: 38 default:
39 return static_cast<WebKit::WebInputEvent::Modifiers>(0); 39 return static_cast<blink::WebInputEvent::Modifiers>(0);
40 } 40 }
41 } 41 }
42 42
43 } // namespace content 43 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698