OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/ui/views/chrome_views_export.h" | 10 #include "chrome/browser/ui/views/chrome_views_export.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 int command_id, | 34 int command_id, |
35 ui::Accelerator* accelerator); | 35 ui::Accelerator* accelerator); |
36 | 36 |
37 // Returns true if the command id has an associated standard | 37 // Returns true if the command id has an associated standard |
38 // accelerator like cut, copy and paste. If the return is true the | 38 // accelerator like cut, copy and paste. If the return is true the |
39 // accelerator is returned via the second argument. | 39 // accelerator is returned via the second argument. |
40 CHROME_VIEWS_EXPORT bool GetStandardAcceleratorForCommandId( | 40 CHROME_VIEWS_EXPORT bool GetStandardAcceleratorForCommandId( |
41 int command_id, | 41 int command_id, |
42 ui::Accelerator* accelerator); | 42 ui::Accelerator* accelerator); |
43 | 43 |
| 44 // Returns a list of command IDs that should be executed repeatedly while their |
| 45 // accelerator keys are held down. |
| 46 CHROME_VIEWS_EXPORT std::vector<int> GetRepeatableCommandIds(); |
| 47 |
44 } // namespace chrome | 48 } // namespace chrome |
45 | 49 |
46 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ | 50 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ |
OLD | NEW |