| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_HEADER_H_ | |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_HEADER_H_ | |
| 7 | |
| 8 #import <Cocoa/Cocoa.h> | |
| 9 | |
| 10 #include "base/mac/scoped_nsobject.h" | |
| 11 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" | |
| 12 | |
| 13 namespace autofill { | |
| 14 class AutofillDialogViewDelegate; | |
| 15 } // autofill | |
| 16 | |
| 17 @interface AutofillHeader : NSViewController<AutofillLayout> { | |
| 18 @private | |
| 19 base::scoped_nsobject<NSTextField> title_; | |
| 20 | |
| 21 autofill::AutofillDialogViewDelegate* delegate_; // not owned, owns dialog. | |
| 22 } | |
| 23 | |
| 24 // Designated initializer. | |
| 25 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate; | |
| 26 | |
| 27 // Updates the header's state from the dialog controller. | |
| 28 - (void)update; | |
| 29 | |
| 30 @end | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_HEADER_H_ | |
| OLD | NEW |