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

Unified Diff: content/public/test/text_input_test_utils.cc

Issue 2149493004: [refactor] Removing the dead method RenderWidgetHostView::GetSelectedText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call method on correct view Created 4 years, 5 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/public/test/text_input_test_utils.cc
diff --git a/content/public/test/text_input_test_utils.cc b/content/public/test/text_input_test_utils.cc
index bc13104efcdbfa7d11867504c1d4d44357f451dc..84c23125961bbdc256080ab9fbe85e6c379a7cae 100644
--- a/content/public/test/text_input_test_utils.cc
+++ b/content/public/test/text_input_test_utils.cc
@@ -251,6 +251,12 @@ void SetCompositionForRenderWidgetHost(
selection_start, selection_end);
}
+base::string16 GetSelectedTextForRenderWidgetHostView(
+ RenderWidgetHostView* view) {
+ return static_cast<RenderWidgetHostViewBase*>(view)
+ ->GetSelectedTextForTesting();
+}
+
size_t GetRegisteredViewsCountFromTextInputManager(WebContents* web_contents) {
std::unordered_set<RenderWidgetHostView*> views;
TextInputManager* manager =

Powered by Google App Engine
This is Rietveld 408576698