| OLD | NEW |
| 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/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // it will be set to the empty string. | 30 // it will be set to the empty string. |
| 31 bool ConvertCharToKeyCode(base::char16 key, | 31 bool ConvertCharToKeyCode(base::char16 key, |
| 32 ui::KeyboardCode* key_code, | 32 ui::KeyboardCode* key_code, |
| 33 int *necessary_modifiers, | 33 int *necessary_modifiers, |
| 34 std::string* error_msg); | 34 std::string* error_msg); |
| 35 | 35 |
| 36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
| 37 bool SwitchToUSKeyboardLayout(); | 37 bool SwitchToUSKeyboardLayout(); |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #if defined(USE_X11) |
| 41 // Use the ozone implementation when there is no X display. |
| 42 bool ConvertKeyCodeToTextOzone(ui::KeyboardCode key_code, |
| 43 int modifiers, |
| 44 std::string* text, |
| 45 std::string* error_msg); |
| 46 bool ConvertCharToKeyCodeOzone(base::char16 key, |
| 47 ui::KeyboardCode* key_code, |
| 48 int* necessary_modifiers, |
| 49 std::string* error_msg); |
| 50 #endif |
| 51 |
| 40 #endif // CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_ | 52 #endif // CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_ |
| OLD | NEW |