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

Unified Diff: content/test/mock_keyboard.h

Issue 1026493002: Allow only a user gesture to trigger autofill popup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not show autofill popup if desktop IME is composing. Created 5 years, 8 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698