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

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

Issue 2354793003: Browser Side TextInputState Tracking for Android (Closed)
Patch Set: Addressing creis@'s comments Created 4 years, 1 month 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.h
diff --git a/content/browser/renderer_host/text_input_manager.h b/content/browser/renderer_host/text_input_manager.h
index db2383bd9b1cfcd121783a72cae6666c0632ad63..0700d3241e1c584a5eb564b37cf3225e06741e34 100644
--- a/content/browser/renderer_host/text_input_manager.h
+++ b/content/browser/renderer_host/text_input_manager.h
@@ -123,9 +123,12 @@ class CONTENT_EXPORT TextInputManager {
// Users of these methods should not hold on to the pointers as they become
// dangling if the TextInputManager or |active_view_| are destroyed.
- // Returns the currently stored TextInputState. An state of nullptr can be
- // interpreted as a ui::TextInputType of ui::TEXT_INPUT_TYPE_NONE.
- const TextInputState* GetTextInputState() const;
+ // Returns the currently stored TextInputState for |view|. A state of nullptr
+ // can be interpreted as a ui::TextInputType of ui::TEXT_INPUT_TYPE_NONE for
+ // the view. If |view| is null and there is an |active_view_|, the state for
+ // |active_view_| is returned.
+ const TextInputState* GetTextInputState(
+ RenderWidgetHostViewBase* view = nullptr) const;
// Returns the selection bounds information for |view|. If |view| == nullptr,
// it will return the corresponding information for |active_view_| or nullptr

Powered by Google App Engine
This is Rietveld 408576698