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

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

Issue 2571583008: Support tracking focused element for OOPIFs. (Closed)
Patch Set: Do not call ScrollFocusedEditableNodeIntoRect for OOPIFs. Created 4 years 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 d41687a00c7ff868811996593f6535e79cfe5d78..a552dd4ca58e207233b0cc556c9c9a41dda269c9 100644
--- a/content/public/test/text_input_test_utils.h
+++ b/content/public/test/text_input_test_utils.h
@@ -28,6 +28,7 @@ class Range;
namespace content {
class MessageLoopRunner;
+class RenderFrameHost;
class RenderProcessHost;
class RenderWidgetHost;
class RenderWidgetHostView;
@@ -61,6 +62,9 @@ RenderWidgetHostView* GetActiveViewFromWebContents(WebContents* web_contents);
// either due to missing TextInputManager or lack of an active widget.
bool RequestCompositionInfoFromActiveWidget(WebContents* web_contents);
+// Returns true if |frame| has a focused editable element.
+bool DoesFrameHaveFocusedEditableElement(RenderFrameHost* frame);
+
// This class provides the necessary API for accessing the state of and also
// observing the TextInputManager for WebContents.
class TextInputManagerTester {

Powered by Google App Engine
This is Rietveld 408576698