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

Unified Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 9197020: Merge 117260 - Fix bug 104170: [Mac OS] Best-fit-window-zoom doesn't work anymore (Closed) Base URL: svn://svn.chromium.org/chrome/branches/963/src/
Patch Set: Created 8 years, 11 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 | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm
===================================================================
--- chrome/browser/ui/cocoa/browser_window_cocoa.mm (revision 117570)
+++ chrome/browser/ui/cocoa/browser_window_cocoa.mm (working copy)
@@ -16,6 +16,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sidebar/sidebar_container.h"
#include "chrome/browser/sidebar/sidebar_manager.h"
+#include "chrome/browser/tab_contents/tab_contents_view_mac.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#import "chrome/browser/ui/cocoa/browser/avatar_button_controller.h"
@@ -637,3 +638,9 @@
void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() {
[[controller_ avatarButtonController] showAvatarBubble];
}
+
+void BrowserWindowCocoa::UpdatePreferredSize(TabContents* tab_contents,
+ const gfx::Size& pref_size) {
+ static_cast<TabContentsViewMac*>(tab_contents->view())->
+ set_preferred_width(pref_size.width());
+}
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698