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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container.mm

Issue 14704004: [Autofill] Add Details Section (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix broken include path. 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_main_container.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm b/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
index b3bc8e74a78b502adb32ceeb7d4480fa306ed017..ca97567239cdc0173588d862952a48615ba45152 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_main_container.mm
@@ -7,6 +7,7 @@
#include "chrome/browser/ui/cocoa/autofill/autofill_dialog_constants.h"
#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_button.h"
#import "chrome/browser/ui/cocoa/autofill/autofill_account_chooser.h"
+#import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h"
#import "chrome/browser/ui/cocoa/key_equivalent_constants.h"
#include "grit/generated_resources.h"
#import "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
@@ -45,9 +46,21 @@
scoped_nsobject<NSView> view([[NSView alloc] initWithFrame:NSZeroRect]);
[view setAutoresizesSubviews:YES];
[view setSubviews:@[accountChooser_, buttonContainer_]];
- self.view = view;
+ [self setView:view];
[self layoutButtons];
+
+ detailsContainer_.reset(
+ [[AutofillDetailsContainer alloc] initWithController:controller_]);
+ NSSize frameSize = [[detailsContainer_ view] frame].size;
+ [[detailsContainer_ view] setFrameOrigin:
+ NSMakePoint(0, NSHeight([buttonContainer_ frame]))];
+ frameSize.height += NSHeight([accountChooser_ frame]);
+ frameSize.height += NSHeight([buttonContainer_ frame]);
+ [[detailsContainer_ view] setFrameOrigin:
+ NSMakePoint(0, NSHeight([buttonContainer_ frame]))];
+ [[self view] setFrameSize:frameSize];
+ [[self view] addSubview:[detailsContainer_ view]];
}
- (void)buildWindowButtonsForFrame:(NSRect)frame {

Powered by Google App Engine
This is Rietveld 408576698