| Index: chrome/browser/extensions/api/input_ime/input_ime_api.cc
|
| diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.cc b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
|
| index 9cfa87800accbe3b8a1f285b67e25aebee527586..c76bb8d12b86aa14b9ec811aac249b799af53d86 100644
|
| --- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
|
| +++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
|
| @@ -265,7 +265,8 @@ class ImeObserver : public InputMethodEngineInterface::Observer {
|
| void OnSurroundingTextChanged(const std::string& component_id,
|
| const std::string& text,
|
| int cursor_pos,
|
| - int anchor_pos) override {
|
| + int anchor_pos,
|
| + int offset_pos) override {
|
| if (extension_id_.empty() ||
|
| !HasListener(input_ime::OnSurroundingTextChanged::kEventName))
|
| return;
|
| @@ -274,6 +275,7 @@ class ImeObserver : public InputMethodEngineInterface::Observer {
|
| info.text = text;
|
| info.focus = cursor_pos;
|
| info.anchor = anchor_pos;
|
| + info.offset = offset_pos;
|
| scoped_ptr<base::ListValue> args(
|
| input_ime::OnSurroundingTextChanged::Create(component_id, info));
|
|
|
|
|