Index: content/test/mock_keyboard.h |
diff --git a/content/test/mock_keyboard.h b/content/test/mock_keyboard.h |
index a77875b4dcb1aeedf856faaed26fe5284e717da2..412561c9b922fcdc93de133cdd6be2286c549f85 100644 |
--- a/content/test/mock_keyboard.h |
+++ b/content/test/mock_keyboard.h |
@@ -84,15 +84,18 @@ class MockKeyboard { |
MockKeyboard(); |
~MockKeyboard(); |
- // Retrieves Unicode characters composed from the the specified keyboard |
- // layout, key code, and modifiers, i.e. characters returned when we type |
- // specified keys on a specified layout. |
+ Modifiers modifiers() const { return keyboard_modifiers_; } |
+ |
+ // Updates the keyboard layout and modifiers. Returns true if the |
+ // platform-specific driver supports this layout. |
+ bool Update(Layout layout, Modifiers modifiers); |
+ |
+ // Retrieves Unicode characters composed from the the specified key code with |
+ // the current keyboard and modifiers, i.e. characters returned when we type |
+ // specified keys on the current layout. |
// This function returns the length of Unicode characters filled in the |
// |output| parameter. |
- int GetCharacters(Layout layout, |
- int key_code, |
- Modifiers modifiers, |
- std::wstring* output); |
+ int GetCharacters(int key_code, std::wstring* output) const; |
private: |
Layout keyboard_layout_; |