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

Unified Diff: chrome/browser/chromeos/cros/keyboard_library.h

Issue 2806077: Support chromeos::RemapModifierKeys API. (Closed)
Patch Set: Created 10 years, 5 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: chrome/browser/chromeos/cros/keyboard_library.h
diff --git a/chrome/browser/chromeos/cros/keyboard_library.h b/chrome/browser/chromeos/cros/keyboard_library.h
index 17e1b42d503f03ba76fcdba6c76e6b416868fd96..55d012a0337f43614a33e19d2d85e62969ed6a18 100644
--- a/chrome/browser/chromeos/cros/keyboard_library.h
+++ b/chrome/browser/chromeos/cros/keyboard_library.h
@@ -26,6 +26,9 @@ class KeyboardLibrary {
virtual bool SetCurrentKeyboardLayoutByName(
const std::string& layout_name) = 0;
+ // Remaps modifier keys. Returns true on success.
+ virtual bool RemapModifierKeys(const ModifierMap& modifier_map) = 0;
+
// Gets whehter we have separate keyboard layout per window, or not. The
// result is stored in |is_per_window|. Returns true on success.
virtual bool GetKeyboardLayoutPerWindow(bool* is_per_window) const = 0;
@@ -44,6 +47,7 @@ class KeyboardLibraryImpl : public KeyboardLibrary {
// KeyboardLibrary overrides.
virtual std::string GetCurrentKeyboardLayoutName() const;
virtual bool SetCurrentKeyboardLayoutByName(const std::string& layout_name);
+ virtual bool RemapModifierKeys(const ModifierMap& modifier_map);
virtual bool GetKeyboardLayoutPerWindow(bool* is_per_window) const;
virtual bool SetKeyboardLayoutPerWindow(bool is_per_window);
« no previous file with comments | « chrome/browser/chromeos/cros/cros_in_process_browser_test.cc ('k') | chrome/browser/chromeos/cros/keyboard_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698