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

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

Issue 23674004: [rAC, OSX] Add overlay shield for interstitials/waits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final tweaks. Created 7 years, 3 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
« 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"
11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
12 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" 12 #include "chrome/browser/ui/autofill/autofill_dialog_view.h"
13 #include "chrome/browser/ui/autofill/testable_autofill_dialog_view.h" 13 #include "chrome/browser/ui/autofill/testable_autofill_dialog_view.h"
14 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" 14 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
15 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" 15 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
16 #include "ui/gfx/size.h" 16 #include "ui/gfx/size.h"
17 17
18 namespace content { 18 namespace content {
19 class NavigationController; 19 class NavigationController;
20 } 20 }
21 21
22 namespace autofill { 22 namespace autofill {
23 class AutofillDialogViewDelegate; 23 class AutofillDialogViewDelegate;
24 } 24 }
25 25
26 @class AutofillAccountChooser; 26 @class AutofillAccountChooser;
27 @class AutofillDialogWindowController; 27 @class AutofillDialogWindowController;
28 @class AutofillMainContainer;
29 @class AutofillOverlayController;
28 @class AutofillSignInContainer; 30 @class AutofillSignInContainer;
29 @class AutofillMainContainer;
30 31
31 namespace autofill { 32 namespace autofill {
32 33
33 class AutofillDialogCocoa : public AutofillDialogView, 34 class AutofillDialogCocoa : public AutofillDialogView,
34 public TestableAutofillDialogView, 35 public TestableAutofillDialogView,
35 public ConstrainedWindowMacDelegate { 36 public ConstrainedWindowMacDelegate {
36 public: 37 public:
37 explicit AutofillDialogCocoa(AutofillDialogViewDelegate* delegate); 38 explicit AutofillDialogCocoa(AutofillDialogViewDelegate* delegate);
38 virtual ~AutofillDialogCocoa(); 39 virtual ~AutofillDialogCocoa();
39 40
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 104
104 @interface AutofillDialogWindowController : 105 @interface AutofillDialogWindowController :
105 NSWindowController<NSWindowDelegate, AutofillLayout> { 106 NSWindowController<NSWindowDelegate, AutofillLayout> {
106 @private 107 @private
107 content::WebContents* webContents_; // weak. 108 content::WebContents* webContents_; // weak.
108 autofill::AutofillDialogCocoa* autofillDialog_; // weak. 109 autofill::AutofillDialogCocoa* autofillDialog_; // weak.
109 110
110 base::scoped_nsobject<AutofillMainContainer> mainContainer_; 111 base::scoped_nsobject<AutofillMainContainer> mainContainer_;
111 base::scoped_nsobject<AutofillSignInContainer> signInContainer_; 112 base::scoped_nsobject<AutofillSignInContainer> signInContainer_;
112 base::scoped_nsobject<AutofillAccountChooser> accountChooser_; 113 base::scoped_nsobject<AutofillAccountChooser> accountChooser_;
114 base::scoped_nsobject<AutofillOverlayController> overlayController_;
113 base::scoped_nsobject<NSTextField> loadingShieldTextField_; 115 base::scoped_nsobject<NSTextField> loadingShieldTextField_;
114 } 116 }
115 117
116 // Designated initializer. The WebContents cannot be NULL. 118 // Designated initializer. The WebContents cannot be NULL.
117 - (id)initWithWebContents:(content::WebContents*)webContents 119 - (id)initWithWebContents:(content::WebContents*)webContents
118 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog; 120 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog;
119 121
120 // A child view request re-layouting. 122 // A child view request re-layouting.
121 - (void)requestRelayout; 123 - (void)requestRelayout;
122 124
123 // Validate data. If it is valid, notify the delegate that the user would 125 // Validate data. If it is valid, notify the delegate that the user would
124 // like to use the data. 126 // like to use the data.
125 - (IBAction)accept:(id)sender; 127 - (IBAction)accept:(id)sender;
126 128
127 // User cancels dialog. 129 // User cancels dialog.
128 - (IBAction)cancel:(id)sender; 130 - (IBAction)cancel:(id)sender;
129 131
130 // Forwarding AutofillDialogView calls. 132 // Forwarding AutofillDialogView calls.
133 - (void)show;
131 - (void)hide; 134 - (void)hide;
132 - (void)updateNotificationArea; 135 - (void)updateNotificationArea;
133 - (void)updateAccountChooser; 136 - (void)updateAccountChooser;
137 - (void)updateButtonStrip;
134 - (void)updateSection:(autofill::DialogSection)section; 138 - (void)updateSection:(autofill::DialogSection)section;
135 - (void)fillSection:(autofill::DialogSection)section 139 - (void)fillSection:(autofill::DialogSection)section
136 forInput:(const autofill::DetailInput&)input; 140 forInput:(const autofill::DetailInput&)input;
137 - (void)getInputs:(autofill::DetailOutputMap*)outputs 141 - (void)getInputs:(autofill::DetailOutputMap*)outputs
138 forSection:(autofill::DialogSection)section; 142 forSection:(autofill::DialogSection)section;
139 - (BOOL)saveDetailsLocally; 143 - (BOOL)saveDetailsLocally;
140 - (content::NavigationController*)showSignIn; 144 - (content::NavigationController*)showSignIn;
141 - (void)hideSignIn; 145 - (void)hideSignIn;
142 - (void)modelChanged; 146 - (void)modelChanged;
143 147
144 @end 148 @end
145 149
146 150
147 // Mirrors the TestableAutofillDialogView API on the C++ side. 151 // Mirrors the TestableAutofillDialogView API on the C++ side.
148 @interface AutofillDialogWindowController (TestableAutofillDialogView) 152 @interface AutofillDialogWindowController (TestableAutofillDialogView)
149 153
150 - (void)setTextContents:(NSString*)text 154 - (void)setTextContents:(NSString*)text
151 forInput:(const autofill::DetailInput&)input; 155 forInput:(const autofill::DetailInput&)input;
152 - (void)setTextContents:(NSString*)text 156 - (void)setTextContents:(NSString*)text
153 ofSuggestionForSection:(autofill::DialogSection)section; 157 ofSuggestionForSection:(autofill::DialogSection)section;
154 - (void)activateFieldForInput:(const autofill::DetailInput&)input; 158 - (void)activateFieldForInput:(const autofill::DetailInput&)input;
155 159
156 @end 160 @end
157 161
158 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ 162 #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