Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / ui / content_accelerators / accelerator_util.h
blob5fcc4c6b39b896ed76f819d867f552bbc1c19be8
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.
5 #ifndef UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_
6 #define UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_
8 #include "base/basictypes.h"
9 #include "content/public/browser/native_web_keyboard_event.h"
10 #include "ui/base/accelerators/accelerator.h"
12 namespace ui {
14 // Returns |event| as a ui::Accelerator.
15 ui::Accelerator GetAcceleratorFromNativeWebKeyboardEvent(
16 const content::NativeWebKeyboardEvent& event);
18 } // namespace ui
20 #endif // UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_