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

Unified Diff: content/browser/renderer_host/text_input_manager.cc

Issue 2045363002: Routing IME Result Calls to the Correct RenderWidgetHost (Aura Only) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: 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..a8d912ada357b9312248152d3d56356d31d58ba8 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 {
@@ -51,6 +52,12 @@ RenderWidgetHostViewBase* TextInputManager::GetActiveView() const {
return active_view_;
}
+RenderWidgetHostImpl* TextInputManager::GetActiveWidget() const {
+ return !!active_view_ ? static_cast<RenderWidgetHostImpl*>(
+ active_view_->GetRenderWidgetHost())
+ : nullptr;
+}
+
void TextInputManager::UpdateTextInputState(
RenderWidgetHostViewBase* view,
const TextInputState& text_input_state) {

Powered by Google App Engine
This is Rietveld 408576698