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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container.h

Issue 19287006: [rAC, OSX] "Save In Chrome" checkbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload - CQ is capricious Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 11 matching lines...) Expand all
22 class AutofillDialogController; 22 class AutofillDialogController;
23 } 23 }
24 24
25 // NSViewController for the main portion of the autofill dialog. Contains 25 // NSViewController for the main portion of the autofill dialog. Contains
26 // account chooser, details for current payment instruments, OK/Cancel. 26 // account chooser, details for current payment instruments, OK/Cancel.
27 // Might dynamically add and remove other elements. 27 // Might dynamically add and remove other elements.
28 @interface AutofillMainContainer : NSViewController<AutofillLayout, 28 @interface AutofillMainContainer : NSViewController<AutofillLayout,
29 NSTextViewDelegate> { 29 NSTextViewDelegate> {
30 @private 30 @private
31 base::scoped_nsobject<GTMWidthBasedTweaker> buttonContainer_; 31 base::scoped_nsobject<GTMWidthBasedTweaker> buttonContainer_;
32 base::scoped_nsobject<NSButton> saveInChromeCheckbox_;
32 base::scoped_nsobject<AutofillDetailsContainer> detailsContainer_; 33 base::scoped_nsobject<AutofillDetailsContainer> detailsContainer_;
33 base::scoped_nsobject<HyperlinkTextView> legalDocumentsView_; 34 base::scoped_nsobject<HyperlinkTextView> legalDocumentsView_;
34 base::scoped_nsobject<AutofillNotificationContainer> notificationContainer_; 35 base::scoped_nsobject<AutofillNotificationContainer> notificationContainer_;
35 AutofillDialogWindowController* target_; 36 AutofillDialogWindowController* target_;
36 37
37 // Weak. Owns the dialog. 38 // Weak. Owns the dialog.
38 autofill::AutofillDialogController* controller_; 39 autofill::AutofillDialogController* controller_;
39 40
40 // Preferred size for legal documents. 41 // Preferred size for legal documents.
41 NSSize legalDocumentsSize_; 42 NSSize legalDocumentsSize_;
42 43
43 // Dirty marker for preferred size. 44 // Dirty marker for preferred size.
44 BOOL legalDocumentsSizeDirty_; 45 BOOL legalDocumentsSizeDirty_;
45 } 46 }
46 47
47 @property(assign, nonatomic) AutofillDialogWindowController* target; 48 @property(assign, nonatomic) AutofillDialogWindowController* target;
48 49
49 // Designated initializer. 50 // Designated initializer.
50 - (id)initWithController:(autofill::AutofillDialogController*)controller; 51 - (id)initWithController:(autofill::AutofillDialogController*)controller;
51 52
52 // Sets the anchor point for the notificationView_. 53 // Sets the anchor point for the notificationView_.
53 - (void)setAnchorView:(NSView*)anchorView; 54 - (void)setAnchorView:(NSView*)anchorView;
54 55
55 // Returns the view controller responsible for |section|. 56 // Returns the view controller responsible for |section|.
56 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section; 57 - (AutofillSectionContainer*)sectionForId:(autofill::DialogSection)section;
57 58
58 // Called when the controller-maintained suggestions model has changed. 59 // Called when the controller-maintained suggestions model has changed.
59 - (void)modelChanged; 60 - (void)modelChanged;
60 61
62 // Get status of "Save in Chrome" checkbox.
63 - (BOOL)saveDetailsLocally;
64
61 // Called when the legal documents text might need to be refreshed. 65 // Called when the legal documents text might need to be refreshed.
62 - (void)updateLegalDocuments; 66 - (void)updateLegalDocuments;
63 67
64 // Called when there are changes to the notification area. 68 // Called when there are changes to the notification area.
65 - (void)updateNotificationArea; 69 - (void)updateNotificationArea;
66 70
67 // Validates form input data. 71 // Validates form input data.
68 - (BOOL)validate; 72 - (BOOL)validate;
69 73
70 @end 74 @end
71 75
76
77 // AutofillMainContainer helper functions, for testing purposes only.
78 @interface AutofillMainContainer (Testing)
79
80 @property (readonly, nonatomic) NSButton* saveInChromeCheckboxForTesting;
Robert Sesek 2013/07/16 18:40:38 nit: no space before (
groby-ooo-7-16 2013/07/16 19:55:39 Done.
81
82 @end
83
72 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_ 84 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_MAIN_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698