1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #import <Cocoa/Cocoa.h> 6 7 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 8 9 @implementation ViewResizerPong 10 11 @synthesize height = height_; 12 13 - (void)resizeView:(NSView*)view newHeight:(CGFloat)height { 14 [self setHeight:height]; 15 16 // Set the view's height and width, in case it uses that as important state. 17 [view setFrame:NSMakeRect(100, 50, 18 NSWidth([[view superview] frame]) - 50, height)]; 19 } 20 @end 21