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

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

Issue 2208583005: Request to start/stop calculating composition info from RenderWidget when it is active/inactive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased (nona@'s patch relanded) 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/public/test/text_input_test_utils.h
diff --git a/content/public/test/text_input_test_utils.h b/content/public/test/text_input_test_utils.h
index 1f36862e9bfb36087b9e15f5243f1a3365529f06..7785b671b3ee5b59db9511858d2cf49d7ce3f5d1 100644
--- a/content/public/test/text_input_test_utils.h
+++ b/content/public/test/text_input_test_utils.h
@@ -49,15 +49,11 @@ size_t GetRegisteredViewsCountFromTextInputManager(WebContents* web_contents);
// given WebContents.
RenderWidgetHostView* GetActiveViewFromWebContents(WebContents* web_contents);
-// This method will send an InputMsg_ImeSetComposition IPC with the provided
-// parameters to the |render_widget_host|.
-void SetCompositionForRenderWidgetHost(
- RenderWidgetHost* render_widget_host,
- const base::string16& text,
- const std::vector<ui::CompositionUnderline>& underlines,
- const gfx::Range& replacement_range,
- int selection_start,
- int selection_end);
+// This method will send a request for an immediate update on composition range
+// from TextInputManager's active widget corresponding to the |web_contents|.
+// This function will return false if the request is not successfully sent;
+// either due to missing TextInputManager or lack of an active widget.
+bool RequestCompositionInfoFromActiveWidget(WebContents* web_contents);
// This class provides the necessary API for accessing the state of and also
// observing the TextInputManager for WebContents.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/public/test/text_input_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698