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

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

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.h
===================================================================
--- chrome/browser/autofill/autofill_address_view_controller_mac.h (revision 0)
+++ chrome/browser/autofill/autofill_address_view_controller_mac.h (revision 0)
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_VIEW_CONTROLLER_MAC_
+#define CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_VIEW_CONTROLLER_MAC_
+
+#import <Cocoa/Cocoa.h>
+#import "chrome/browser/cocoa/disclosure_view_controller.h"
+
+@class AutoFillAddressModel;
+class AutoFillProfile;
+
+// A class that coordinates the |addressModel| and the associated view
+// held in AutoFillAddressFormView.xib.
+// |initWithProfile:| is the designated initializer. It takes |profile|
+// and transcribes it to |addressModel| to which the view is bound.
+@interface AutoFillAddressViewController : DisclosureViewController {
+ @private
+ // The primary model for this controller. The model is instantiated
+ // from within |initWithProfile|. We do not hold it as a scoped_nsobject
+ // because it is exposed as a KVO compliant property.
+ AutoFillAddressModel* addressModel_; // strong reference
+}
+
+@property (nonatomic, retain) AutoFillAddressModel* addressModel;
+
+// Designated initializer. Takes a copy of the data in |profile|,
+// it is not held as a reference.
+- (id)initWithProfile:(const AutoFillProfile&)profile;
+
+// Copy data from internal model to |profile|.
+- (void)copyModelToProfile:(AutoFillProfile*)profile;
+
+@end
+
+#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_VIEW_CONTROLLER_MAC_
« no previous file with comments | « chrome/browser/autofill/autofill_address_model_mac.mm ('k') | chrome/browser/autofill/autofill_address_view_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698