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

Side by Side Diff: chrome/browser/ui/views/accelerator_table.h

Issue 2128243003: Make most browser accelerators not repeat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use set and fix tests Created 4 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_
6 #define CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_
7 7
8 #include <set>
8 #include <vector> 9 #include <vector>
9 10
10 #include "chrome/browser/ui/views/chrome_views_export.h" 11 #include "chrome/browser/ui/views/chrome_views_export.h"
11 #include "ui/events/keycodes/keyboard_codes.h" 12 #include "ui/events/keycodes/keyboard_codes.h"
12 13
13 namespace ui { 14 namespace ui {
14 class Accelerator; 15 class Accelerator;
15 } 16 }
16 17
17 // This contains the list of accelerators for the Aura implementation. 18 // This contains the list of accelerators for the Aura implementation.
(...skipping 16 matching lines...) Expand all
34 int command_id, 35 int command_id,
35 ui::Accelerator* accelerator); 36 ui::Accelerator* accelerator);
36 37
37 // Returns true if the command id has an associated standard 38 // Returns true if the command id has an associated standard
38 // accelerator like cut, copy and paste. If the return is true the 39 // accelerator like cut, copy and paste. If the return is true the
39 // accelerator is returned via the second argument. 40 // accelerator is returned via the second argument.
40 CHROME_VIEWS_EXPORT bool GetStandardAcceleratorForCommandId( 41 CHROME_VIEWS_EXPORT bool GetStandardAcceleratorForCommandId(
41 int command_id, 42 int command_id,
42 ui::Accelerator* accelerator); 43 ui::Accelerator* accelerator);
43 44
45 // Returns command IDs that should be executed repeatedly while their
46 // accelerator keys are held down.
47 CHROME_VIEWS_EXPORT std::set<int> GetRepeatableCommandIds();
48
44 } // namespace chrome 49 } // namespace chrome
45 50
46 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ 51 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/accelerator_table.cc » ('j') | chrome/browser/ui/views/frame/browser_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698