OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_ | 5 #ifndef UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_ |
6 #define UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_ | 6 #define UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "content/public/browser/native_web_keyboard_event.h" | 8 #include "content/public/browser/native_web_keyboard_event.h" |
10 #include "ui/base/accelerators/accelerator.h" | 9 #include "ui/base/accelerators/accelerator.h" |
11 | 10 |
12 namespace ui { | 11 namespace ui { |
13 | 12 |
14 // Returns |event| as a ui::Accelerator. | 13 // Returns |event| as a ui::Accelerator. |
15 ui::Accelerator GetAcceleratorFromNativeWebKeyboardEvent( | 14 ui::Accelerator GetAcceleratorFromNativeWebKeyboardEvent( |
16 const content::NativeWebKeyboardEvent& event); | 15 const content::NativeWebKeyboardEvent& event); |
17 | 16 |
18 } // namespace ui | 17 } // namespace ui |
19 | 18 |
20 #endif // UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_ | 19 #endif // UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_ |
OLD | NEW |