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