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

Unified Diff: chrome/browser/chromeos/input_method/input_method_engine.cc

Issue 1282823002: Add text offset to OnSurroundingTextChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/input_method/input_method_engine.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_engine.cc b/chrome/browser/chromeos/input_method/input_method_engine.cc
index d985f6a565f11cf3e1666c4ddcaca214efb9de65..3c610f6a96bb04af2d085d45eddb6e7439ebc294 100644
--- a/chrome/browser/chromeos/input_method/input_method_engine.cc
+++ b/chrome/browser/chromeos/input_method/input_method_engine.cc
@@ -658,13 +658,13 @@ void InputMethodEngine::CandidateClicked(uint32 index) {
void InputMethodEngine::SetSurroundingText(const std::string& text,
uint32 cursor_pos,
- uint32 anchor_pos) {
+ uint32 anchor_pos,
+ uint32 offset_pos) {
if (!CheckProfile())
return;
- observer_->OnSurroundingTextChanged(active_component_id_,
- text,
- static_cast<int>(cursor_pos),
- static_cast<int>(anchor_pos));
+ observer_->OnSurroundingTextChanged(
+ active_component_id_, text, static_cast<int>(cursor_pos),
+ static_cast<int>(anchor_pos), static_cast<int>(offset_pos));
}
bool InputMethodEngine::CheckProfile() const {

Powered by Google App Engine
This is Rietveld 408576698