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

Unified Diff: chrome/browser/ui/cocoa/website_settings/permission_selector_button.h

Issue 242443005: Changes cocoa implementation of permission bubble to better match mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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/ui/cocoa/website_settings/permission_selector_button.h
diff --git a/chrome/browser/ui/cocoa/website_settings/permission_selector_button.h b/chrome/browser/ui/cocoa/website_settings/permission_selector_button.h
index a28519959259bfb2c6bc42a1085fee4223cacbf7..ad94c5b95e75dc76a9531eaac3441c0d246742a3 100644
--- a/chrome/browser/ui/cocoa/website_settings/permission_selector_button.h
+++ b/chrome/browser/ui/cocoa/website_settings/permission_selector_button.h
@@ -26,8 +26,8 @@
forURL:(const GURL&)url
withCallback:(PermissionMenuModel::ChangeCallback)callback;
-// Returns the size of the button with the given title.
-- (NSSize)sizeForTitle:(NSString*)title;
+// Returns the best size for |button| with the given title.
++ (NSSize)sizeForTitle:(NSString*)title forButton:(NSButton*)button;
// Returns the largest possible size given all of the items in the menu.
- (CGFloat)maxTitleWidthWithDefaultSetting:(ContentSetting)defaultSetting;

Powered by Google App Engine
This is Rietveld 408576698