Add ability to gather metrics to BubbleManager.
[chromium-blink-merge.git] / chrome / browser / ui / accelerator_utils.h
blob70b4591a72a41c1b5a571119061370ff4bd9f897
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
6 #define CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_
8 class Profile;
10 namespace ui {
11 class Accelerator;
14 namespace chrome {
16 // Returns true if the given |accelerator| is currently registered by
17 // Chrome.
18 bool IsChromeAccelerator(const ui::Accelerator& accelerator,
19 Profile* profile);
21 ui::Accelerator GetPrimaryChromeAcceleratorForCommandId(int command_id);
23 } // namespace chrome
25 #endif // CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_