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

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

Issue 1330423003: [Extensions Toolbar] Protect against crazy bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final nits Created 5 years, 3 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 | « no previous file | chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c047f8649b5601e10745375912e6dcf1870dff01..b9b2b78715f05b1b4eb3a06582d0bfbb1c976dae 100644
--- a/chrome/browser/extensions/browser_action_test_util.h
+++ b/chrome/browser/extensions/browser_action_test_util.h
@@ -86,6 +86,11 @@ class BrowserActionTestUtil {
// to run.
bool ActionButtonWantsToRun(size_t index);
+ // Sets the current width of the browser actions container without resizing
+ // the underlying controller. This is to simulate e.g. when the browser window
+ // is too small for the preferred width.
+ void SetWidth(int width);
+
// Returns the ToolbarActionsBar.
ToolbarActionsBar* GetToolbarActionsBar();
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698