| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| 11 @class AutoFillAddressModel; | 11 @class AutoFillAddressModel; |
| 12 @class AutoFillDialogController; | |
| 13 class AutoFillProfile; | 12 class AutoFillProfile; |
| 14 | 13 |
| 15 // The sheet can be invoked in "Add" or "Edit" mode. This dictates the caption | 14 // The sheet can be invoked in "Add" or "Edit" mode. This dictates the caption |
| 16 // seen at the top of the sheet. | 15 // seen at the top of the sheet. |
| 17 enum { | 16 enum { |
| 18 kAutoFillAddressAddMode = 0, | 17 kAutoFillAddressAddMode = 0, |
| 19 kAutoFillAddressEditMode = 1 | 18 kAutoFillAddressEditMode = 1 |
| 20 }; | 19 }; |
| 21 typedef NSInteger AutoFillAddressMode; | 20 typedef NSInteger AutoFillAddressMode; |
| 22 | 21 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 // it is not held as a reference. | 49 // it is not held as a reference. |
| 51 - (id)initWithProfile:(const AutoFillProfile&)profile | 50 - (id)initWithProfile:(const AutoFillProfile&)profile |
| 52 mode:(AutoFillAddressMode)mode; | 51 mode:(AutoFillAddressMode)mode; |
| 53 | 52 |
| 54 // Copy data from internal model to |profile|. | 53 // Copy data from internal model to |profile|. |
| 55 - (void)copyModelToProfile:(AutoFillProfile*)profile; | 54 - (void)copyModelToProfile:(AutoFillProfile*)profile; |
| 56 | 55 |
| 57 @end | 56 @end |
| 58 | 57 |
| 59 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ | 58 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_ADDRESS_SHEET_CONTROLLER_MAC_ |
| OLD | NEW |