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. 4 5#ifndef CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_ 6#define CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_ 7 8class Profile; 9 10namespace ui { 11class Accelerator; 12} 13 14namespace chrome { 15 16// Returns true if the given |accelerator| is currently registered by 17// Chrome. 18bool IsChromeAccelerator(const ui::Accelerator& accelerator, 19 Profile* profile); 20 21ui::Accelerator GetPrimaryChromeAcceleratorForCommandId(int command_id); 22 23} // namespace chrome 24 25#endif // CHROME_BROWSER_UI_ACCELERATOR_UTILS_H_ 26