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

Unified Diff: chrome/browser/global_keyboard_shortcuts_mac.h

Issue 2074643003: MacViews: Views accelerators table should match the Cocoa one. (Closed) Base URL: ssh://bitbucket.browser.yandex-team.ru/chromium/src.git@master
Patch Set: Fix compilation. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/global_keyboard_shortcuts_mac.h
diff --git a/chrome/browser/global_keyboard_shortcuts_mac.h b/chrome/browser/global_keyboard_shortcuts_mac.h
index be5223ed8af0ce79993c978871c9b568cde7ff72..6e8e35f9fe0d7989bb0f6962890e103bc8ea51de 100644
--- a/chrome/browser/global_keyboard_shortcuts_mac.h
+++ b/chrome/browser/global_keyboard_shortcuts_mac.h
@@ -8,6 +8,8 @@
#include <Carbon/Carbon.h> // For unichar.
#include <stddef.h>
+#include <vector>
+
@class NSEvent;
struct KeyboardShortcutData {
@@ -78,10 +80,9 @@ int CommandForKeyEvent(NSEvent* event);
unichar KeyCharacterForEvent(NSEvent* event);
// For testing purposes.
-const KeyboardShortcutData* GetWindowKeyboardShortcutTable(size_t* num_entries);
-const KeyboardShortcutData*
- GetDelayedWindowKeyboardShortcutTable(size_t* num_entries);
-const KeyboardShortcutData*
- GetBrowserKeyboardShortcutTable(size_t* num_entries);
+const std::vector<KeyboardShortcutData>& GetWindowKeyboardShortcutTable();
+const std::vector<KeyboardShortcutData>&
+GetDelayedWindowKeyboardShortcutTable();
+const std::vector<KeyboardShortcutData>& GetBrowserKeyboardShortcutTable();
#endif // #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_
« no previous file with comments | « chrome/browser/global_keyboard_shortcuts_cocoa_mac.mm ('k') | chrome/browser/global_keyboard_shortcuts_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698