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

Side by Side Diff: ui/base/ime/chromeos/ime_keymap.cc

Issue 640143003: Fix DOM code for VKEY_LCONTROL and VKEY_RCONTROL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/base/ime/chromeos/ime_keymap.h" 5 #include "ui/base/ime/chromeos/ime_keymap.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 {VKEY_F19, "F19"}, 114 {VKEY_F19, "F19"},
115 {VKEY_F20, "F20"}, 115 {VKEY_F20, "F20"},
116 {VKEY_F21, "F21"}, 116 {VKEY_F21, "F21"},
117 {VKEY_F22, "F22"}, 117 {VKEY_F22, "F22"},
118 {VKEY_F23, "F23"}, 118 {VKEY_F23, "F23"},
119 {VKEY_F24, "F24"}, 119 {VKEY_F24, "F24"},
120 {VKEY_NUMLOCK, "NumLock"}, 120 {VKEY_NUMLOCK, "NumLock"},
121 {VKEY_SCROLL, "ScrollLock"}, 121 {VKEY_SCROLL, "ScrollLock"},
122 {VKEY_LSHIFT, "ShiftLeft"}, 122 {VKEY_LSHIFT, "ShiftLeft"},
123 {VKEY_RSHIFT, "ShiftRight"}, 123 {VKEY_RSHIFT, "ShiftRight"},
124 {VKEY_LCONTROL, "CtrlLeft"}, 124 {VKEY_LCONTROL, "ControlLeft"},
125 {VKEY_RCONTROL, "CtrlRight"}, 125 {VKEY_RCONTROL, "ControlRight"},
126 {VKEY_LMENU, "AltLeft"}, 126 {VKEY_LMENU, "AltLeft"},
127 {VKEY_RMENU, "AltRight"}, 127 {VKEY_RMENU, "AltRight"},
128 {VKEY_BROWSER_BACK, "BrowserBack"}, 128 {VKEY_BROWSER_BACK, "BrowserBack"},
129 {VKEY_BROWSER_FORWARD, "BrowserForward"}, 129 {VKEY_BROWSER_FORWARD, "BrowserForward"},
130 {VKEY_BROWSER_REFRESH, "BrowserRefresh"}, 130 {VKEY_BROWSER_REFRESH, "BrowserRefresh"},
131 {VKEY_BROWSER_STOP, "BrowserStop"}, 131 {VKEY_BROWSER_STOP, "BrowserStop"},
132 {VKEY_BROWSER_SEARCH, "BrowserSearch"}, 132 {VKEY_BROWSER_SEARCH, "BrowserSearch"},
133 {VKEY_BROWSER_HOME, "BrowserHome"}, 133 {VKEY_BROWSER_HOME, "BrowserHome"},
134 {VKEY_VOLUME_MUTE, "VolumeMute"}, 134 {VKEY_VOLUME_MUTE, "VolumeMute"},
135 {VKEY_VOLUME_DOWN, "VolumeDown"}, 135 {VKEY_VOLUME_DOWN, "VolumeDown"},
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 KeyboardCode DomKeycodeToKeyboardCode(const std::string& code) { 189 KeyboardCode DomKeycodeToKeyboardCode(const std::string& code) {
190 return g_keycode_map.Get().GetKeyboardCode(code); 190 return g_keycode_map.Get().GetKeyboardCode(code);
191 } 191 }
192 192
193 std::string KeyboardCodeToDomKeycode(KeyboardCode code) { 193 std::string KeyboardCodeToDomKeycode(KeyboardCode code) {
194 return g_keycode_map.Get().GetDomKeycode(code); 194 return g_keycode_map.Get().GetDomKeycode(code);
195 } 195 }
196 196
197 } // namespace ui 197 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698