summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_window_controller.mm
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 17:41:44 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 17:41:44 +0000
commit078a10a1c64458e5f5c4fdf57edbbc935dd145ca (patch)
treeac6514112513237e157d5fa859509750bc022872 /chrome/browser/cocoa/browser_window_controller.mm
parent799185ae9f4d034fd11b052cd3ff7ed1e12c10c2 (diff)
downloadchromium_src-078a10a1c64458e5f5c4fdf57edbbc935dd145ca.zip
chromium_src-078a10a1c64458e5f5c4fdf57edbbc935dd145ca.tar.gz
chromium_src-078a10a1c64458e5f5c4fdf57edbbc935dd145ca.tar.bz2
Fix browser side handling of moveTo by resizing the content area; not the window.
BUG=27365 TEST=none Review URL: http://codereview.chromium.org/661187 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r--chrome/browser/cocoa/browser_window_controller.mm6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm
index f795ce9..3eb0300 100644
--- a/chrome/browser/cocoa/browser_window_controller.mm
+++ b/chrome/browser/cocoa/browser_window_controller.mm
@@ -215,7 +215,7 @@
windowRect.set_origin(WindowSizer::GetDefaultPopupOrigin(size));
}
- windowShim_->SetBounds(windowRect);
+ windowShim_->SetBounds(windowRect, BrowserWindow::WINDOW_BOUNDS);
// Puts the incognito badge on the window frame, if necessary. Do this
// before creating the tab strip to avoid redundant tab layout.
@@ -976,6 +976,10 @@
[toolbarController_ setStarredState:isStarred];
}
+- (NSRect)tabContentsFrame {
+ return [[self tabContentArea] frame];
+}
+
// Return the rect, in WebKit coordinates (flipped), of the window's grow box
// in the coordinate system of the content area of the currently selected tab.
// |windowGrowBox| needs to be in the window's coordinate system.