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

Unified Diff: ui/events/ozone/layout/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
« no previous file with comments | « no previous file | ui/events/ozone/layout/keyboard_layout_engine_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/layout/keyboard_layout_engine.h
diff --git a/ui/events/ozone/layout/keyboard_layout_engine.h b/ui/events/ozone/layout/keyboard_layout_engine.h
index b03a0da3ec552846117750a3cbccadddb65c981f..71027914f51a2f94a4cde3bb9cf1b7bc8fc16dd9 100644
--- a/ui/events/ozone/layout/keyboard_layout_engine.h
+++ b/ui/events/ozone/layout/keyboard_layout_engine.h
@@ -37,6 +37,12 @@ class EVENTS_OZONE_LAYOUT_EXPORT KeyboardLayoutEngine {
// the argument string is defined by that interface (crbug.com/362698).
virtual bool SetCurrentLayoutByName(const std::string& layout_name) = 0;
+ // Sets the current layout given a memory location and the buffer size in
+ // bytes, that represent keyboard mapping description; returns true on
+ // success.
+ virtual bool SetCurrentLayoutFromBuffer(const char* keymap_string,
+ size_t size) = 0;
+
// Returns true if the current layout makes use of the ISO Level 5 Shift key.
// Drop-in replacement for ImeKeyboard::IsISOLevel5ShiftAvailable().
virtual bool UsesISOLevel5Shift() const = 0;
« no previous file with comments | « no previous file | ui/events/ozone/layout/keyboard_layout_engine_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698