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.
5 #import <Cocoa/Cocoa.h>
7 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
9 @implementation ViewResizerPong
11 @synthesize height = height_;
13 - (void)resizeView:(NSView*)view newHeight:(CGFloat)height {
14 [self setHeight:height];
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)];