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

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

Issue 10855154: Update browserAction.setIcon and pageAction.setIcon for hidpi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 8 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: 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 c733f2bce2721eb37681a773d4378a401608797b..9134d1b565d1521cc1c379326f1feb8a46ad88e1 100644
--- a/chrome/browser/extensions/browser_action_test_util.h
+++ b/chrome/browser/extensions/browser_action_test_util.h
@@ -7,12 +7,14 @@
#include <string>
+#include "base/basictypes.h"
#include "build/build_config.h"
class Browser;
class ExtensionAction;
namespace gfx {
+class Image;
class Rect;
class Size;
} // namespace gfx
@@ -37,6 +39,9 @@ class BrowserActionTestUtil {
// to load by calling WaitForBrowserActionUpdated.
bool HasIcon(int index);
+ // Returns icon for the browser action at |index|.
+ gfx::Image GetIcon(int index);
+
// Simulates a user click on the browser action button at |index|.
void Press(int index);

Powered by Google App Engine
This is Rietveld 408576698