diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 22:18:12 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 22:18:12 +0000 |
commit | 8656ff1fa04f542c7c775cccfe736146daa343ec (patch) | |
tree | 971300e3d495251cd616a6bf535b7f1362347457 | |
parent | 633e5c013f0bf1285c2e5fde0157ff0f354f2d70 (diff) | |
download | chromium_src-8656ff1fa04f542c7c775cccfe736146daa343ec.zip chromium_src-8656ff1fa04f542c7c775cccfe736146daa343ec.tar.gz chromium_src-8656ff1fa04f542c7c775cccfe736146daa343ec.tar.bz2 |
Style fixes; commenting.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/5243003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66828 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/global_keyboard_shortcuts_mac.mm | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/chrome/browser/global_keyboard_shortcuts_mac.mm b/chrome/browser/global_keyboard_shortcuts_mac.mm index cc5ba64..131519b 100644 --- a/chrome/browser/global_keyboard_shortcuts_mac.mm +++ b/chrome/browser/global_keyboard_shortcuts_mac.mm @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -17,11 +17,13 @@ // we differentiate between shortcuts that are checked before any other view // gets the chance to handle them (WindowKeyboardShortcut) or after all views // had a chance but did not handle the keypress event -// (DelayedWindowKeyboardShortcut) +// (DelayedWindowKeyboardShortcut). -const KeyboardShortcutData* GetWindowKeyboardShortcutTable - (size_t* num_entries) { +const KeyboardShortcutData* GetWindowKeyboardShortcutTable( + size_t* num_entries) { static const KeyboardShortcutData keyboard_shortcuts[] = { + //cmd shift cntrl option + //--- ----- ----- ------ // '{' / '}' characters should be matched earlier than virtual key code // (therefore we can match alt-8 as '{' on german keyboards). {true, false, false, false, 0, '}', IDC_SELECT_NEXT_TAB}, @@ -56,9 +58,11 @@ const KeyboardShortcutData* GetWindowKeyboardShortcutTable return keyboard_shortcuts; } -const KeyboardShortcutData* GetDelayedWindowKeyboardShortcutTable - (size_t* num_entries) { +const KeyboardShortcutData* GetDelayedWindowKeyboardShortcutTable( + size_t* num_entries) { static const KeyboardShortcutData keyboard_shortcuts[] = { + //cmd shift cntrl option + //--- ----- ----- ------ {false, false, false, false, kVK_Escape, 0, IDC_STOP}, }; @@ -67,9 +71,11 @@ const KeyboardShortcutData* GetDelayedWindowKeyboardShortcutTable return keyboard_shortcuts; } -const KeyboardShortcutData* GetBrowserKeyboardShortcutTable - (size_t* num_entries) { +const KeyboardShortcutData* GetBrowserKeyboardShortcutTable( + size_t* num_entries) { static const KeyboardShortcutData keyboard_shortcuts[] = { + //cmd shift cntrl option + //--- ----- ----- ------ {true, false, false, false, kVK_LeftArrow, 0, IDC_BACK}, {true, false, false, false, kVK_RightArrow, 0, IDC_FORWARD}, {false, false, false, false, kVK_Delete, 0, IDC_BACK}, |