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

Unified Diff: chrome/browser/autofill/autofill_address_view_controller_mac.mm

Issue 558066: Autofill dialog for the Mac. This is UI only at this point. The UI is not h... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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/autofill/autofill_address_view_controller_mac.mm
===================================================================
--- chrome/browser/autofill/autofill_address_view_controller_mac.mm (revision 0)
+++ chrome/browser/autofill/autofill_address_view_controller_mac.mm (revision 0)
@@ -0,0 +1,40 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "chrome/browser/autofill/autofill_address_view_controller_mac.h"
+#include "base/mac_util.h"
+#include "base/sys_string_conversions.h"
+#import "chrome/browser/autofill/autofill_address_model_mac.h"
+#include "chrome/browser/autofill/autofill_profile.h"
+
+@implementation AutoFillAddressViewController
+
+@synthesize addressModel = addressModel_;
+
+- (id)initWithProfile:(const AutoFillProfile&)profile {
+ self = [super initWithNibName:@"AutoFillAddressFormView"
+ bundle:mac_util::MainAppBundle()];
+ if (self) {
+ // Pull in the view for initialization.
+ [self view];
+
+ // Create the model.
+ [self setAddressModel:[[[AutoFillAddressModel alloc]
+ initWithProfile:profile] autorelease]];
+ }
+ return self;
+}
+
+- (void)dealloc {
+ [addressModel_ release];
+ [super dealloc];
+}
+
+- (void)copyModelToProfile:(AutoFillProfile*)profile {
+ [addressModel_ copyModelToProfile:profile];
+}
+
+@end
+
+

Powered by Google App Engine
This is Rietveld 408576698