summaryrefslogtreecommitdiffstats
path: root/ui/content_accelerators/accelerator_util.h
blob: 5fcc4c6b39b896ed76f819d867f552bbc1c19be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_
#define UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_

#include "base/basictypes.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "ui/base/accelerators/accelerator.h"

namespace ui {

// Returns |event| as a ui::Accelerator.
ui::Accelerator GetAcceleratorFromNativeWebKeyboardEvent(
    const content::NativeWebKeyboardEvent& event);

}  // namespace ui

#endif  // UI_CONTENT_ACCELERATORS_ACCELERATOR_UTIL_H_