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

Unified Diff: chrome/test/chromedriver/keycode_text_conversion.h

Issue 2952383002: use ozone implementation for key code conversion when there is no X display (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/BUILD.gn ('k') | chrome/test/chromedriver/keycode_text_conversion_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/test/chromedriver/BUILD.gn ('k') | chrome/test/chromedriver/keycode_text_conversion_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698