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

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

Issue 73293002: [rAC, OSX] Cleanup: Separate out WindowController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to HEAD Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DIALOG_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
7 7
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 // WeakPtrFactory for deferred close. 101 // WeakPtrFactory for deferred close.
102 base::WeakPtrFactory<AutofillDialogCocoa> close_weak_ptr_factory_; 102 base::WeakPtrFactory<AutofillDialogCocoa> close_weak_ptr_factory_;
103 103
104 // The delegate |this| queries for logic and state. 104 // The delegate |this| queries for logic and state.
105 AutofillDialogViewDelegate* delegate_; 105 AutofillDialogViewDelegate* delegate_;
106 }; 106 };
107 107
108 } // autofill 108 } // autofill
109 109
110 @interface AutofillDialogWindowController :
111 NSWindowController<NSWindowDelegate, AutofillLayout> {
112 @private
113 content::WebContents* webContents_; // weak.
114 autofill::AutofillDialogCocoa* autofillDialog_; // weak.
115
116 base::scoped_nsobject<AutofillMainContainer> mainContainer_;
117 base::scoped_nsobject<AutofillSignInContainer> signInContainer_;
118 base::scoped_nsobject<AutofillAccountChooser> accountChooser_;
119 base::scoped_nsobject<AutofillOverlayController> overlayController_;
120 base::scoped_nsobject<AutofillLoadingShieldController>
121 loadingShieldController_;
122 base::scoped_nsobject<NSTextField> titleTextField_;
123 base::scoped_nsobject<NSTextView> fieldEditor_;
124 }
125
126 // Designated initializer. The WebContents cannot be NULL.
127 - (id)initWithWebContents:(content::WebContents*)webContents
128 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog;
129
130 // A child view request re-layouting.
131 - (void)requestRelayout;
132
133 // Cancels all previous requests to re-layout.
134 - (void)cancelRelayout;
135
136 // Validate data. If it is valid, notify the delegate that the user would
137 // like to use the data.
138 - (IBAction)accept:(id)sender;
139
140 // User cancels dialog.
141 - (IBAction)cancel:(id)sender;
142
143 // Forwarding AutofillDialogView calls.
144 - (void)show;
145 - (void)hide;
146 - (void)updateNotificationArea;
147 - (void)updateAccountChooser;
148 - (void)updateButtonStrip;
149 - (void)updateSection:(autofill::DialogSection)section;
150 - (void)fillSection:(autofill::DialogSection)section
151 forInput:(const autofill::DetailInput&)input;
152 - (void)getInputs:(autofill::DetailOutputMap*)outputs
153 forSection:(autofill::DialogSection)section;
154 - (NSString*)getCvc;
155 - (BOOL)saveDetailsLocally;
156 - (content::NavigationController*)showSignIn;
157 - (void)hideSignIn;
158 - (void)modelChanged;
159 - (void)updateErrorBubble;
160 - (void)onSignInResize:(NSSize)size;
161
162 @end
163
164
165 // Mirrors the TestableAutofillDialogView API on the C++ side.
166 @interface AutofillDialogWindowController (TestableAutofillDialogView)
167
168 - (void)setTextContents:(NSString*)text
169 forInput:(const autofill::DetailInput&)input;
170 - (void)setTextContents:(NSString*)text
171 ofSuggestionForSection:(autofill::DialogSection)section;
172 - (void)activateFieldForInput:(const autofill::DetailInput&)input;
173 - (content::WebContents*)getSignInWebContents;
174 - (BOOL)IsShowingOverlay;
175
176 @end
177
178 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ 110 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698