Chromium Code Reviews

Side by Side 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.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 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/autofill/autofill_address_view_controller_mac.h"
6 #include "base/mac_util.h"
7 #include "base/sys_string_conversions.h"
8 #import "chrome/browser/autofill/autofill_address_model_mac.h"
9 #include "chrome/browser/autofill/autofill_profile.h"
10
11 @implementation AutoFillAddressViewController
12
13 @synthesize addressModel = addressModel_;
14
15 - (id)initWithProfile:(const AutoFillProfile&)profile {
16 self = [super initWithNibName:@"AutoFillAddressFormView"
17 bundle:mac_util::MainAppBundle()];
18 if (self) {
19 // Pull in the view for initialization.
20 [self view];
21
22 // Create the model.
23 [self setAddressModel:[[[AutoFillAddressModel alloc]
24 initWithProfile:profile] autorelease]];
25 }
26 return self;
27 }
28
29 - (void)dealloc {
30 [addressModel_ release];
31 [super dealloc];
32 }
33
34 - (void)copyModelToProfile:(AutoFillProfile*)profile {
35 [addressModel_ copyModelToProfile:profile];
36 }
37
38 @end
39
40
OLDNEW

Powered by Google App Engine