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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_details_container.h

Issue 15645004: [rAC] Allow sub-views to trigger layout reflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now using proper patch base. 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/memory/scoped_nsobject.h" 10 #include "base/memory/scoped_nsobject.h"
11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 class AutofillDialogController; 14 class AutofillDialogController;
15 } 15 }
16 16
17 @class AutofillSectionContainer; 17 @class AutofillSectionContainer;
18 18
19 // UI controller for details for current payment instrument. 19 // UI controller for details for current payment instrument.
20 @interface AutofillDetailsContainer : NSViewController { 20 @interface AutofillDetailsContainer : NSViewController {
21 @private 21 @private
22 scoped_nsobject<NSMutableArray> details_; // The individual detail sections. 22 scoped_nsobject<NSMutableArray> details_; // The individual detail sections.
23 autofill::AutofillDialogController* controller_; // Not owned. 23 autofill::AutofillDialogController* controller_; // Not owned.
24 } 24 }
25 25
26 // Designated initializer. 26 // Designated initializer.
27 - (id)initWithController:(autofill::AutofillDialogController*)controller; 27 - (id)initWithController:(autofill::AutofillDialogController*)controller;
28 28
29 // Determine preferred size for content.
30 - (NSSize)preferredSize;
31
32 // Layout contents according to preferredSize;
33 - (void)performLayout;
34
29 // Retrieve the container for the specified |section|. 35 // Retrieve the container for the specified |section|.
30 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; 36 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section;
31 37
32 // Called when the controller-maintained suggestions model has changed. 38 // Called when the controller-maintained suggestions model has changed.
33 - (void)modelChanged; 39 - (void)modelChanged;
34 40
35 @end 41 @end
36 42
37 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DETAILS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698