blob: f4848c8dcad0b6e7ea5bf6100f217b9a3e55af81 [file] [log] [blame]
// Copyright (c) 2011 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.
#include "ui/events/keycodes/keyboard_code_conversion_win.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
namespace ui {
WORD WindowsKeyCodeForKeyboardCode(KeyboardCode keycode) {
return static_cast<WORD>(keycode);
}
KeyboardCode KeyboardCodeForWindowsKeyCode(WORD keycode) {
return static_cast<KeyboardCode>(keycode);
}
DomCode CodeForWindowsScanCode(WORD scan_code) {
return ui::KeycodeConverter::NativeKeycodeToDomCode(scan_code);
}
} // namespace ui