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

Unified Diff: chrome/browser/chromeos/cros/input_method_library.cc

Issue 6902067: Add two functions for handwriting: SendHandwritingStrokes and CancelHandwriting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DEPS for libcros, Rebase. Created 9 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: chrome/browser/chromeos/cros/input_method_library.cc
diff --git a/chrome/browser/chromeos/cros/input_method_library.cc b/chrome/browser/chromeos/cros/input_method_library.cc
index d8519d21d76b4587b8327d8e583956d3d8ce0cd6..89072efbfcd72f8ba474d57c5a61b48ecf07000e 100644
--- a/chrome/browser/chromeos/cros/input_method_library.cc
+++ b/chrome/browser/chromeos/cros/input_method_library.cc
@@ -262,6 +262,18 @@ class InputMethodLibraryImpl : public InputMethodLibrary,
return chromeos::GetKeyboardOverlayId(input_method_id);
}
+ virtual void SendHandwritingStroke(const HandwritingStroke& stroke) {
+ if (!initialized_successfully_)
+ return;
+ chromeos::SendHandwritingStroke(input_method_status_connection_, stroke);
+ }
+
+ virtual void CancelHandwriting(int n_strokes) {
+ if (!initialized_successfully_)
+ return;
+ chromeos::CancelHandwriting(input_method_status_connection_, n_strokes);
+ }
+
private:
// Returns true if the given input method config value is a single
// element string list that contains an input method ID of a keyboard
@@ -895,6 +907,9 @@ class InputMethodLibraryStubImpl : public InputMethodLibrary {
iter->second : "";
}
+ virtual void SendHandwritingStroke(const HandwritingStroke& stroke) {}
+ virtual void CancelHandwriting(int n_strokes) {}
+
private:
typedef std::map<std::string, std::string> KeyboardOverlayMap;
« no previous file with comments | « chrome/browser/chromeos/cros/input_method_library.h ('k') | chrome/browser/chromeos/cros/mock_input_method_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698