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

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

Issue 16753002: Use a direct include of strings headers in chrome/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_
6 #define CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_ 6 #define CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/strings/string16.h"
11 #include "ui/base/keycodes/keyboard_codes.h" 11 #include "ui/base/keycodes/keyboard_codes.h"
12 12
13 // These functions only support conversion of characters in the BMP 13 // These functions only support conversion of characters in the BMP
14 // (Basic Multilingual Plane). 14 // (Basic Multilingual Plane).
15 15
16 // Returns the text in UTF8 that would be produced from the given key code and 16 // Returns the text in UTF8 that would be produced from the given key code and
17 // modifiers with the current keyboard layout, or "" if no character would 17 // modifiers with the current keyboard layout, or "" if no character would
18 // be produced. This will return "" if the produced text contains characters 18 // be produced. This will return "" if the produced text contains characters
19 // outside the BMP. 19 // outside the BMP.
20 std::string ConvertKeyCodeToText(ui::KeyboardCode key_code, int modifiers); 20 std::string ConvertKeyCodeToText(ui::KeyboardCode key_code, int modifiers);
21 21
22 // Converts a character to the key code and modifiers that would produce 22 // Converts a character to the key code and modifiers that would produce
23 // the character using the current keyboard layout. Returns true on success. 23 // the character using the current keyboard layout. Returns true on success.
24 bool ConvertCharToKeyCode( 24 bool ConvertCharToKeyCode(
25 char16 key, ui::KeyboardCode* key_code, int *necessary_modifiers); 25 char16 key, ui::KeyboardCode* key_code, int *necessary_modifiers);
26 26
27 #endif // CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_ 27 #endif // CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/key_converter_unittest.cc ('k') | chrome/test/chromedriver/keycode_text_conversion_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698