| 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..f2ea47f84be373104ed36e281cb5a2b7f79685d3 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,9 +275,9 @@ 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));
|
| -
|
| DispatchEventToExtension(
|
| extensions::events::INPUT_IME_ON_SURROUNDING_TEXT_CHANGED,
|
| input_ime::OnSurroundingTextChanged::kEventName, args.Pass());
|
|
|