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

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: Address comments 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
« no previous file with comments | « chromeos/dbus/ibus/ibus_constants.h ('k') | chromeos/dbus/ibus/ibus_input_context_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ae97ba5e2f5964183739f2bdeea914bf6d44bb29 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. |start_index| is inclusive and
+ // |end_index| is exclusive.
+ 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(
« no previous file with comments | « chromeos/dbus/ibus/ibus_constants.h ('k') | chromeos/dbus/ibus/ibus_input_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698