Chromium Code Reviews| Index: content/browser/renderer_host/text_input_manager.cc |
| diff --git a/content/browser/renderer_host/text_input_manager.cc b/content/browser/renderer_host/text_input_manager.cc |
| index 258c05ee00602ff2cf4a8ed6a1f0a76b71d15b46..c80f3807a0452485b0435e9e3c5f2b024c7dcb05 100644 |
| --- a/content/browser/renderer_host/text_input_manager.cc |
| +++ b/content/browser/renderer_host/text_input_manager.cc |
| @@ -4,6 +4,7 @@ |
| #include "content/browser/renderer_host/text_input_manager.h" |
| +#include "content/browser/renderer_host/render_widget_host_impl.h" |
| #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| namespace content { |
| @@ -47,8 +48,10 @@ const TextInputState* TextInputManager::GetTextInputState() { |
| return !!active_view_ ? &text_input_state_map_[active_view_] : nullptr; |
| } |
| -RenderWidgetHostViewBase* TextInputManager::GetActiveView() const { |
| - return active_view_; |
| +RenderWidgetHostImpl* TextInputManager::GetActiveWidget() const { |
|
Charlie Reis
2016/06/21 21:13:56
There's a bunch of places that just call GetActive
EhsanK
2016/06/22 18:26:33
I found three instances:
in 'text_input_test_utils
Charlie Reis
2016/06/22 19:19:15
Yes. Also, I missed this in the previous review,
kenrb
2016/06/22 19:39:50
Charlie: I had asked for removal of GetActiveView(
Charlie Reis
2016/06/22 20:23:08
Ok, I'm fine with steering people towards GetActiv
EhsanK
2016/06/22 20:56:44
I also agree with Ken on this. Views are used as k
EhsanK
2016/06/22 20:56:44
Charlie: I actually think |active_widget_| rather
|
| + return !!active_view_ ? static_cast<RenderWidgetHostImpl*>( |
| + active_view_->GetRenderWidgetHost()) |
| + : nullptr; |
| } |
| void TextInputManager::UpdateTextInputState( |