key_code_conv.h revision 4e180b6a0b4720a9b8e9e959a882386f690f08ff
1// Copyright 2013 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. 4 5#ifndef CHROME_TEST_REMOTING_KEY_CODE_CONV_H_ 6#define CHROME_TEST_REMOTING_KEY_CODE_CONV_H_ 7 8#include "ui/events/keycodes/keyboard_codes.h" 9 10namespace remoting { 11 12// Find out the key(s) that need to be pressed to type the desired character. 13// The information can be used to simulate a key press event. 14// The information returned includes: 15// 1. The UIEvents (aka: DOM4Events) |code| value as defined in: 16// http://www.w3.org/TR/uievents/ 17// 2. The virtual key code (ui::KeyboardCode) 18// 3. The shift state. 19// This function assumes US keyboard layout. 20void GetKeyValuesFromChar( 21 char c, const char** code, ui::KeyboardCode* vkey_code, bool* shift); 22 23} // namespace remoting 24 25#endif // CHROME_TEST_REMOTING_KEY_CODE_CONV_H_ 26