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

Unified Diff: ui/events/keycodes/keyboard_code_conversion_mac.mm

Issue 782673002: MacViews: tryjobs for toolkit_views=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: With SetNativeWindowProperty Created 5 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_mac.h ('k') | ui/resources/ui_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/keycodes/keyboard_code_conversion_mac.mm
diff --git a/ui/events/keycodes/keyboard_code_conversion_mac.mm b/ui/events/keycodes/keyboard_code_conversion_mac.mm
index 1e976b7198e98df0a1ad831f6c86cff54566b2ca..05dec0ec17c0038c611ddb71f1d30ce28818f462 100644
--- a/ui/events/keycodes/keyboard_code_conversion_mac.mm
+++ b/ui/events/keycodes/keyboard_code_conversion_mac.mm
@@ -203,6 +203,8 @@ const KeyCodeMap kKeyCodesMap[] = {
// A convenient array for getting symbol characters on the number keys.
const char kShiftCharsForNumberKeys[] = ")!@#$%^&*(";
+} // namespace
+
// Translates from character code to keyboard code.
KeyboardCode KeyboardCodeFromCharCode(unichar charCode) {
switch (charCode) {
@@ -311,6 +313,8 @@ KeyboardCode KeyboardCodeFromCharCode(unichar charCode) {
return VKEY_UNKNOWN;
}
+namespace {
+
KeyboardCode KeyboardCodeFromKeyCode(unsigned short keyCode) {
static const KeyboardCode kKeyboardCodes[] = {
/* 0 */ VKEY_A,
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_mac.h ('k') | ui/resources/ui_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698