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 CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ 7 8 #include "content/common/content_export.h" 9 #include "ui/base/keycodes/keyboard_codes.h" 10 11 namespace WebKit { 12 class WebKeyboardEvent; 13 } 14 15 namespace content { 16 17 // Update |event|'s windowsKeyCode and keyIdentifer properties using the 18 // provided |windows_key_code|. 19 CONTENT_EXPORT void UpdateWindowsKeyCodeAndKeyIdentifier( 20 WebKit::WebKeyboardEvent* event, 21 ui::KeyboardCode windows_key_code); 22 23 } 24 25 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_UTIL_H_ 26