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

Unified Diff: chrome/browser/ui/views/frame/browser_view.h

Issue 2128243003: Make most browser accelerators not repeat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: chrome/browser/ui/views/frame/browser_view.h
diff --git a/chrome/browser/ui/views/frame/browser_view.h b/chrome/browser/ui/views/frame/browser_view.h
index 743b63577472476334cde00365bae1dab51f9a8b..1f4e03a4059228a60046f0cf7a432419074861ba 100644
--- a/chrome/browser/ui/views/frame/browser_view.h
+++ b/chrome/browser/ui/views/frame/browser_view.h
@@ -652,9 +652,14 @@ class BrowserView : public BrowserWindow,
// The Status information bubble that appears at the bottom of the window.
std::unique_ptr<StatusBubbleViews> status_bubble_;
- // A mapping between accelerators and commands.
+ // A mapping between accelerators and command IDs.
std::map<ui::Accelerator, int> accelerator_table_;
+ // IDs of commands that should be executed in response to repeated
+ // accelerators (i.e. generated by holding keys down). Repeated accelerators
+ // are ignored otherwise.
+ std::set<int> repeatable_command_ids_;
+
// True if we have already been initialized.
bool initialized_;

Powered by Google App Engine
This is Rietveld 408576698