summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_window_cocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_window_cocoa.mm')
-rw-r--r--chrome/browser/browser_window_cocoa.mm12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/browser_window_cocoa.mm b/chrome/browser/browser_window_cocoa.mm
index baee161..e61bea443 100644
--- a/chrome/browser/browser_window_cocoa.mm
+++ b/chrome/browser/browser_window_cocoa.mm
@@ -99,10 +99,16 @@ bool BrowserWindowCocoa::IsFullscreen() const {
return false;
}
+@interface NSWindow(OSInternals)
+- (NSRect)_growBoxRect;
+@end
+
gfx::Rect BrowserWindowCocoa::GetRootWindowResizerRect() const {
- // TODO(pinkerton): fill this in so scrollbars go in the correct places
- NOTIMPLEMENTED();
- return gfx::Rect();
+ NSRect windowRect = [window_ _growBoxRect];
+ // convert from window coordinates to the coordinates of the currently
+ // selected tab. |tabRect| will already be flipped into WebKit coordinates.
+ NSRect tabRect = [controller_ selectedTabGrowBoxFromWindowGrowBox:windowRect];
+ return gfx::Rect(NSRectToCGRect(tabRect));
}
LocationBar* BrowserWindowCocoa::GetLocationBar() const {