root/ui/events/keycodes/keyboard_code_conversion_win.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. WindowsKeyCodeForKeyboardCode
  2. KeyboardCodeForWindowsKeyCode
  3. CodeForWindowsScanCode

// 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/dom4/keycode_converter.h"

namespace ui {

WORD WindowsKeyCodeForKeyboardCode(KeyboardCode keycode) {
  return static_cast<WORD>(keycode);
}

KeyboardCode KeyboardCodeForWindowsKeyCode(WORD keycode) {
  return static_cast<KeyboardCode>(keycode);
}

const char* CodeForWindowsScanCode(WORD scan_code) {
  return KeycodeConverter::GetInstance()->NativeKeycodeToCode(
      scan_code);
}

}  // namespace ui

/* [<][>][^][v][top][bottom][index][help] */