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

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

Issue 506069: [Mac] Port browser action popup test to mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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: chrome/browser/extensions/browser_action_test_util.h
===================================================================
--- chrome/browser/extensions/browser_action_test_util.h (revision 34954)
+++ chrome/browser/extensions/browser_action_test_util.h (working copy)
@@ -9,6 +9,11 @@
class Browser;
+namespace gfx {
+class Rect;
+class Size;
+} // namespace gfx
+
class BrowserActionTestUtil {
public:
explicit BrowserActionTestUtil(Browser* browser) : browser_(browser) {}
@@ -25,6 +30,24 @@
// Returns the current tooltip for the browser action button.
std::string GetTooltip(int index);
+// TODO(estade): http://crbug.com/29710 port to Linux
+#if !defined(TOOLKIT_GTK)
+ // Returns whether a browser action popup is being shown currently.
+ bool HasPopup();
+
+ // Returns the bounds of the current browser action popup.
+ gfx::Rect GetPopupBounds();
+
+ // Hides the given popup and returns whether the hide was successful.
+ bool HidePopup();
+
+ // Returns the minimum allowed size of an extension popup.
+ static gfx::Size GetMinPopupSize();
+
+ // Returns the maximum allowed size of an extension popup.
+ static gfx::Size GetMaxPopupSize();
+#endif
+
private:
Browser* browser_; // weak
};
« no previous file with comments | « chrome/browser/extensions/browser_action_apitest.cc ('k') | chrome/browser/extensions/browser_action_test_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698