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

Unified Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 2208093004: Use focused RenderWidgetHostImpl instead of TextInputManager::GetActiveWidget() to obtain TextSelec… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some crashes Created 4 years, 4 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/render_widget_host_view_base.h
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
index 620b0eed3c5748f46b6c73c56423b4020d8087b5..002136d962137020b7c706b96b955c0a8bb5a8d5 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.h
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
@@ -64,6 +64,7 @@ class LatencyInfo;
namespace content {
class BrowserAccessibilityDelegate;
class BrowserAccessibilityManager;
+class RenderWidgetHostImpl;
class RenderWidgetHostViewBaseObserver;
class SyntheticGesture;
class SyntheticGestureTarget;
@@ -417,6 +418,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
// |text_input_manager_|.
TextInputManager* GetTextInputManager();
+ // This method returns the active widget form TextInputManager. If there are
Charlie Reis 2016/08/04 19:56:50 s/form/from/ Also, do you mean "If there are no a
EhsanK 2016/08/04 22:29:55 I removed this from patch. But why I had it: GetAc
+ // active widgets, this method will return the focused widget instead.
+ RenderWidgetHostImpl* ActiveOrFocusedWidget() const;
+
// Whether this view is a popup and what kind of popup it is (select,
// autofill...).
blink::WebPopupType popup_type_;

Powered by Google App Engine
This is Rietveld 408576698