Index: chrome/browser/chromeos/input_method/xkeyboard.h |
diff --git a/chrome/browser/chromeos/input_method/xkeyboard.h b/chrome/browser/chromeos/input_method/xkeyboard.h |
index df938c51124089f8134f97a04dddd6d1f1dc3109..79c7dd52bf9f6e0d6b7a489947353e88cba1af8b 100644 |
--- a/chrome/browser/chromeos/input_method/xkeyboard.h |
+++ b/chrome/browser/chromeos/input_method/xkeyboard.h |
@@ -46,6 +46,11 @@ typedef std::vector<ModifierKeyPair> ModifierMap; |
// change the current mapping of the modifier keys. Returns true on success. |
bool SetCurrentKeyboardLayoutByName(const std::string& layout_name); |
+// Sets the current keyboard layout again. We have to call the function every |
+// time when "XI_HierarchyChanged" XInput2 event is sent to Chrome. See |
+// xinput_hierarchy_changed_event_listener.h for details. |
+bool ReapplyCurrentKeyboardLayout(); |
+ |
// Remaps modifier keys. This function does not change the current keyboard |
// layout. Returns true on success. |
// Notice: For now, you can't remap Left Control and Left Alt keys to CapsLock. |