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

Unified Diff: chromeos/dbus/ibus/ibus_input_context_client.h

Issue 10825154: Extends IBusContextClient to handle SetSurroundingText. (Closed) Base URL: http://git.chromium.org/chromium/src.git@surrounding_support
Patch Set: Style Fix Created 8 years, 5 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: chromeos/dbus/ibus/ibus_input_context_client.h
diff --git a/chromeos/dbus/ibus/ibus_input_context_client.h b/chromeos/dbus/ibus/ibus_input_context_client.h
index a6ae66cd52367e7e42e0f90dfdbd2491209b0cc7..9462d1e0120328ffdeb72cf6b1391f9f9ec53708 100644
--- a/chromeos/dbus/ibus/ibus_input_context_client.h
+++ b/chromeos/dbus/ibus/ibus_input_context_client.h
@@ -5,6 +5,8 @@
#ifndef CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_
#define CHROMEOS_DBUS_IBUS_IBUS_INPUT_CONTEXT_CLIENT_H_
+#include <string>
+
#include "base/bind.h"
#include "base/callback.h"
#include "chromeos/chromeos_export.h"
@@ -103,6 +105,12 @@ class CHROMEOS_EXPORT IBusInputContextClient {
const ProcessKeyEventCallback& callback,
const ErrorCallback& error_callback) = 0;
+ // Invokes SetSurroundingText method call. THe |start_index| is inclusive
+ // start index and |end_index| is exclusive end index.
satorux1 2012/08/02 16:38:16 looks rather redundant. just |start_index| is in
Seigo Nonaka 2012/08/02 17:54:32 Done.
+ virtual void SetSurroundingText(const std::string& text,
+ uint32 start_index,
+ uint32 end_index) = 0;
+
// Factory function, creates a new instance and returns ownership.
// For normal usage, access the singleton via DBusThreadManager::Get().
static CHROMEOS_EXPORT IBusInputContextClient* Create(

Powered by Google App Engine
This is Rietveld 408576698