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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_section_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_section_container.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_section_container.h b/chrome/browser/ui/cocoa/autofill/autofill_section_container.h
index 9b0b3fe4362e1f8106fd0ca6fc1920f526bf7f94..07505a5c2f67b605db906c8abe67c1aa67d1ec1c 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_section_container.h
+++ b/chrome/browser/ui/cocoa/autofill/autofill_section_container.h
@@ -25,6 +25,9 @@ namespace autofill {
@private
scoped_nsobject<LayoutView> inputs_;
scoped_nsobject<MenuButton> suggestButton_;
+ scoped_nsobject<NSTextField> label_;
+ scoped_nsobject<NSView> view_; // The view for the container.
+
scoped_nsobject<MenuController> menuController_;
autofill::DialogSection section_;
autofill::AutofillDialogController* controller_; // Not owned.
@@ -37,6 +40,12 @@ namespace autofill {
- (id)initWithController:(autofill::AutofillDialogController*)controller
forSection:(autofill::DialogSection)section;
+// Determine preferred size for content.
+- (NSSize)preferredSize;
+
+// Layout contents according to preferredSize;
+- (void)performLayout;
+
// Populates |output| with mappings from field identification to input value.
- (void)getInputs:(autofill::DetailOutputMap*)output;

Powered by Google App Engine
This is Rietveld 408576698