| Index: content/browser/renderer_host/render_widget_host_view_base.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_base.cc b/content/browser/renderer_host/render_widget_host_view_base.cc
|
| index 449fcd92927cd837b031cb869bfe84b213e09e2b..86d498c925a5603c2e9242af28de5562909f3b8d 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_base.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_base.cc
|
| @@ -64,6 +64,19 @@ RenderWidgetHostViewBase::~RenderWidgetHostViewBase() {
|
| text_input_manager_->Unregister(this);
|
| }
|
|
|
| +RenderWidgetHostImpl* RenderWidgetHostViewBase::GetFocusedWidget() const {
|
| + RenderWidgetHostImpl* host =
|
| + RenderWidgetHostImpl::From(GetRenderWidgetHost());
|
| +
|
| + return host && host->delegate()
|
| + ? host->delegate()->GetFocusedRenderWidgetHost(host)
|
| + : nullptr;
|
| +}
|
| +
|
| +RenderWidgetHost* RenderWidgetHostViewBase::GetRenderWidgetHost() const {
|
| + return nullptr;
|
| +}
|
| +
|
| void RenderWidgetHostViewBase::NotifyObserversAboutShutdown() {
|
| // Note: RenderWidgetHostInputEventRouter is an observer, and uses the
|
| // following notification to remove this view from its surface owners map.
|
| @@ -117,7 +130,7 @@ void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
|
| // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
|
| // Also, remove the following local variables when that happens
|
| // (https://crbug.com/578168 and https://crbug.com/602427).
|
| -#if defined(USE_AURA)
|
| +#if !defined(OS_ANDROID)
|
| if (GetTextInputManager())
|
| GetTextInputManager()->SelectionChanged(this, text, offset, range);
|
| #else
|
| @@ -150,7 +163,7 @@ base::string16 RenderWidgetHostViewBase::GetSelectedText() {
|
| // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
|
| // Also, remove the following local variables when that happens
|
| // (https://crbug.com/578168 and https://crbug.com/602427).
|
| -#if defined(USE_AURA)
|
| +#if !defined(OS_ANDROID)
|
| if (!GetTextInputManager())
|
| return base::string16();
|
|
|
|
|