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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_layout_view.mm

Issue 14704004: [Autofill] Add Details Section (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 "chrome/browser/ui/cocoa/autofill/autofill_layout_view.h"
6
7 #include "chrome/browser/ui/cocoa/autofill/simple_grid_layout.h"
8
9 @implementation AutofillLayoutView
10
11 - (void)setLayoutManager:(SimpleGridLayout*) layout {
12 layout_.reset(layout);
13 }
14
15 - (void)setFrame:(NSRect)frame {
sail 2013/05/01 17:12:36 should you override resizeSubviewsWithOldSize inst
groby-ooo-7-16 2013/05/01 20:37:44 Done. (separate CL)
16 [super setFrame:frame];
17 [self performLayout];
18 }
19
20 - (void)performLayout {
21 layout_->Layout(self);
22 }
23
24 - (CGFloat)preferredHeightForWidth:(CGFloat)width {
25 return layout_->GetPreferredHeightForWidth(width);
26 }
27
28 @end
29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698