diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 17:58:47 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-29 17:58:47 +0000 |
commit | af2fd777dae98b84279707490382002276dfc006 (patch) | |
tree | 74e7b41b42f7c92a540f9a108ea176fcbf6817c3 /chrome/browser/cocoa/tab_contents_controller.mm | |
parent | dce5df54b85ca90d4bd2d2a04c9f78d3a149072c (diff) | |
download | chromium_src-af2fd777dae98b84279707490382002276dfc006.zip chromium_src-af2fd777dae98b84279707490382002276dfc006.tar.gz chromium_src-af2fd777dae98b84279707490382002276dfc006.tar.bz2 |
Removes our homespun grow box and replaces it with the
standard widget. This may also fix some of our resizing
issues.
BUG=http://crbug.com/14663
TEST=The resizer widget should still work as expected.
Review URL: http://codereview.chromium.org/149094
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_contents_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_contents_controller.mm | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/chrome/browser/cocoa/tab_contents_controller.mm b/chrome/browser/cocoa/tab_contents_controller.mm index 8898a87..a51796d 100644 --- a/chrome/browser/cocoa/tab_contents_controller.mm +++ b/chrome/browser/cocoa/tab_contents_controller.mm @@ -58,29 +58,4 @@ } } -// Return the rect, in WebKit coordinates (flipped), of the window's grow box -// in the coordinate system of the content area of this tab. -- (NSRect)growBoxRect { - NSRect localGrowBox = NSMakeRect(0, 0, 0, 0); - NSView* contentView = contents_->GetNativeView(); - if (contentView) { - // For the rect, we start with the grow box view which is a sibling of - // the content view's containing box. It's in the coordinate system of - // the controller view. - localGrowBox = [growBox_ frame]; - // The scrollbar assumes that the resizer goes all the way down to the - // bottom corner, so we ignore any y offset to the rect itself and use the - // entire bottom corner. - localGrowBox.origin.y = 0; - // Convert to the content view's coordinates. - localGrowBox = [contentView convertRect:localGrowBox - fromView:[self view]]; - // Flip the rect in view coordinates - localGrowBox.origin.y = - [contentView frame].size.height - localGrowBox.origin.y - - localGrowBox.size.height; - } - return localGrowBox; -} - @end |