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

Unified Diff: chrome/browser/cocoa/tab_contents_controller.mm

Issue 149094: Removes our homespun grow box and replaces it with the... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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/cocoa/tab_contents_controller.h ('k') | chrome/browser/cocoa/tab_strip_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/tab_contents_controller.mm
===================================================================
--- chrome/browser/cocoa/tab_contents_controller.mm (revision 19396)
+++ chrome/browser/cocoa/tab_contents_controller.mm (working copy)
@@ -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
« no previous file with comments | « chrome/browser/cocoa/tab_contents_controller.h ('k') | chrome/browser/cocoa/tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698