Index: chrome/test/chromedriver/keycode_text_conversion.h |
diff --git a/chrome/test/chromedriver/keycode_text_conversion.h b/chrome/test/chromedriver/keycode_text_conversion.h |
index 6885f70964b2c1c5507ac25e9fe7c5dd86a7aaad..5968516aa5eb4344031ce4aad39a7e604808fed8 100644 |
--- a/chrome/test/chromedriver/keycode_text_conversion.h |
+++ b/chrome/test/chromedriver/keycode_text_conversion.h |
@@ -37,4 +37,16 @@ bool ConvertCharToKeyCode(base::char16 key, |
bool SwitchToUSKeyboardLayout(); |
#endif |
+#if defined(USE_X11) |
+// Use the ozone implementation when there is no X display. |
+bool ConvertKeyCodeToTextOzone(ui::KeyboardCode key_code, |
+ int modifiers, |
+ std::string* text, |
+ std::string* error_msg); |
+bool ConvertCharToKeyCodeOzone(base::char16 key, |
+ ui::KeyboardCode* key_code, |
+ int* necessary_modifiers, |
+ std::string* error_msg); |
+#endif |
+ |
#endif // CHROME_TEST_CHROMEDRIVER_KEYCODE_TEXT_CONVERSION_H_ |