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

Side by Side Diff: chrome/browser/cocoa/view_resizer_pong.mm

Issue 384105: Mac: Animate the bookmark bar showing/hiding. (Closed)
Patch Set: Comments added per rohitrao's review. Created 11 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/cocoa/toolbar_controller_unittest.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "chrome/browser/cocoa/view_resizer_pong.h" 7 #import "chrome/browser/cocoa/view_resizer_pong.h"
8 8
9 @implementation ViewResizerPong 9 @implementation ViewResizerPong
10 10
11 @synthesize height = height_; 11 @synthesize height = height_;
12 12
13 - (void)resizeView:(NSView*)view newHeight:(float)height { 13 - (void)resizeView:(NSView*)view newHeight:(float)height {
14 [self setHeight:height]; 14 [self setHeight:height];
15 15
16 // Set the view's height and width, in case it uses that as important state. 16 // Set the view's height and width, in case it uses that as important state.
17 [view setFrame:NSMakeRect(100, 100, 250, height)]; 17 [view setFrame:NSMakeRect(100, 50,
18 NSWidth([[view superview] frame]) - 50, height)];
18 } 19 }
19 @end 20 @end
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/toolbar_controller_unittest.mm ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698