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

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

Issue 7074008: initial version of auto VK switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo update Created 9 years, 6 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/mock_input_method_library.h
diff --git a/chrome/browser/chromeos/cros/mock_input_method_library.h b/chrome/browser/chromeos/cros/mock_input_method_library.h
index 1bc5aa8c5d02b6a56a7608e51660b343ca2fef70..3d1c9269897a7db067d3973095bf4ea78ab06ae6 100644
--- a/chrome/browser/chromeos/cros/mock_input_method_library.h
+++ b/chrome/browser/chromeos/cros/mock_input_method_library.h
@@ -6,9 +6,11 @@
#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_INPUT_METHOD_LIBRARY_H_
#pragma once
+#include <set>
#include <string>
#include "chrome/browser/chromeos/cros/input_method_library.h"
+#include "googleurl/src/gurl.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace chromeos {
@@ -19,7 +21,9 @@ class MockInputMethodLibrary : public InputMethodLibrary {
virtual ~MockInputMethodLibrary();
MOCK_METHOD1(AddObserver, void(Observer*));
+ MOCK_METHOD1(AddVirtualKeyboardObserver, void(VirtualKeyboardObserver*));
MOCK_METHOD1(RemoveObserver, void(Observer*));
+ MOCK_METHOD1(RemoveVirtualKeyboardObserver, void(VirtualKeyboardObserver*));
MOCK_METHOD0(GetActiveInputMethods, InputMethodDescriptors*(void));
MOCK_METHOD0(GetNumActiveInputMethods, size_t(void));
@@ -39,6 +43,9 @@ class MockInputMethodLibrary : public InputMethodLibrary {
MOCK_METHOD1(SetEnableAutoImeShutdown, void(bool));
MOCK_METHOD1(SendHandwritingStroke, void(const HandwritingStroke&));
MOCK_METHOD1(CancelHandwritingStrokes, void(int));
+ MOCK_METHOD3(RegisterVirtualKeyboard, void(const GURL&,
+ const std::set<std::string>&,
+ bool));
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/cros/input_method_library.cc ('k') | chrome/browser/chromeos/input_method/virtual_keyboard_selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698