accelerator_util.h 622 B

12345678910111213141516171819
  1. // Copyright 2014 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. #ifndef UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_
  5. #define UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_
  6. #include "content/public/browser/native_web_keyboard_event.h"
  7. #include "ui/base/accelerators/accelerator.h"
  8. namespace ui {
  9. // Returns |event| as a ui::Accelerator.
  10. ui::Accelerator GetAcceleratorFromNativeWebKeyboardEvent(
  11. const content::NativeWebKeyboardEvent& event);
  12. } // namespace ui
  13. #endif // UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_