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

Unified Diff: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h

Issue 2645703005: Add a KeyboardLayoutEngine::SetCurrentLayoutFromBuffer implementation (Closed)
Patch Set: for landing Created 3 years, 11 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
Index: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h
diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h
index 045a54206b1eb927fe0f28efcec676a7cadf049c..a338c18da655f44148c2f4ded001145a90fc87f6 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h
@@ -30,11 +30,13 @@ class EVENTS_OZONE_LAYOUT_EXPORT XkbKeyboardLayoutEngine
XkbKeyboardLayoutEngine(const XkbKeyCodeConverter& converter);
~XkbKeyboardLayoutEngine() override;
- void SetKeymapFromStringForTest(const char* keymap_string);
-
// KeyboardLayoutEngine:
bool CanSetCurrentLayout() const override;
bool SetCurrentLayoutByName(const std::string& layout_name) override;
+ // Required by Ozone/Wayland (at least) for non ChromeOS builds. See
+ // http://xkbcommon.org/doc/current/md_doc_quick-guide.html for further info.
+ bool SetCurrentLayoutFromBuffer(const char* keymap_string,
+ size_t size) override;
bool UsesISOLevel5Shift() const override;
bool UsesAltGr() const override;
« no previous file with comments | « ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc ('k') | ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698