Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: chrome/test/webdriver/keycode_text_conversion.h

Issue 23526047: Delete old chromedriver code, and remove mongoose webserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_WEBDRIVER_KEYCODE_TEXT_CONVERSION_H_
6 #define CHROME_TEST_WEBDRIVER_KEYCODE_TEXT_CONVERSION_H_
7
8 #include <string>
9
10 #include "base/strings/string16.h"
11 #include "ui/base/keycodes/keyboard_codes.h"
12
13 namespace webdriver {
14
15 // These functions only support conversion of characters in the BMP
16 // (Basic Multilingual Plane).
17
18 // Returns the text in UTF8 that would be produced from the given key code and
19 // modifiers with the current keyboard layout, or "" if no character would
20 // be produced. This will return "" if the produced text contains characters
21 // outside the BMP.
22 std::string ConvertKeyCodeToText(ui::KeyboardCode key_code, int modifiers);
23
24 // Converts a character to the key code and modifiers that would produce
25 // the character using the current keyboard layout. Returns true on success.
26 bool ConvertCharToKeyCode(
27 char16 key, ui::KeyboardCode* key_code, int *necessary_modifiers);
28
29 } // namespace webdriver
30
31 #endif // CHROME_TEST_WEBDRIVER_KEYCODE_TEXT_CONVERSION_H_
OLDNEW
« no previous file with comments | « chrome/test/webdriver/http_response_unittest.cc ('k') | chrome/test/webdriver/keycode_text_conversion_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698