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

Unified Diff: chrome/browser/extensions/browser_action_test_util.h

Issue 2908983002: [reland] Bring up BrowserActionInteractiveTest on Mac. (Closed)
Patch Set: respond to comments Created 3 years, 7 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: chrome/browser/extensions/browser_action_test_util.h
diff --git a/chrome/browser/extensions/browser_action_test_util.h b/chrome/browser/extensions/browser_action_test_util.h
index 4bdeedf2f74f7248c5ed7e5c4d3b1e4f75a5c9d2..cf90784a83ee9e99e75897964df905a574b9a210 100644
--- a/chrome/browser/extensions/browser_action_test_util.h
+++ b/chrome/browser/extensions/browser_action_test_util.h
@@ -69,6 +69,10 @@ class BrowserActionTestUtil {
gfx::NativeView GetPopupNativeView();
+ // Spins a RunLoop until the NativeWindow hosting |GetPopupNativeView()| is
+ // reported as active by the OS. Returns true if successful.
+ bool WaitForPopup();
+
// Returns whether a browser action popup is being shown currently.
bool HasPopup();
« no previous file with comments | « chrome/browser/extensions/api/extension_action/browser_action_interactive_test.cc ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698