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

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

Issue 1934703002: Fix keyboard focus for OOPIF-<webview>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nasko@ comments. 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index 52f48f18fd7330fcf6c6a9f155c2288064e05d9c..891d40bc183c1365df08be859677b5913bd90944 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -574,6 +574,24 @@ class BrowserTestClipboardScope {
DISALLOW_COPY_AND_ASSIGN(BrowserTestClipboardScope);
};
+// This observer is used to wait for its owner Frame to become focused.
+class FrameFocusedObserver {
+ // Private impl struct which hides non public types including FrameTreeNode.
+ class FrameTreeNodeObserverImpl;
+
+ public:
+ explicit FrameFocusedObserver(RenderFrameHost* owner_host);
+ ~FrameFocusedObserver();
+
+ void Wait();
+
+ private:
+ // FrameTreeNode::Observer
+ std::unique_ptr<FrameTreeNodeObserverImpl> impl_;
+
+ DISALLOW_COPY_AND_ASSIGN(FrameFocusedObserver);
+};
+
} // namespace content
#endif // CONTENT_PUBLIC_TEST_BROWSER_TEST_UTILS_H_
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698