OLD | NEW |
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 AutofillLoadingShieldController; |
28 @class AutofillMainContainer; | 29 @class AutofillMainContainer; |
29 @class AutofillOverlayController; | 30 @class AutofillOverlayController; |
30 @class AutofillSignInContainer; | 31 @class AutofillSignInContainer; |
31 | 32 |
32 namespace autofill { | 33 namespace autofill { |
33 | 34 |
34 class AutofillDialogCocoa : public AutofillDialogView, | 35 class AutofillDialogCocoa : public AutofillDialogView, |
35 public TestableAutofillDialogView, | 36 public TestableAutofillDialogView, |
36 public ConstrainedWindowMacDelegate { | 37 public ConstrainedWindowMacDelegate { |
37 public: | 38 public: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 @interface AutofillDialogWindowController : | 110 @interface AutofillDialogWindowController : |
110 NSWindowController<NSWindowDelegate, AutofillLayout> { | 111 NSWindowController<NSWindowDelegate, AutofillLayout> { |
111 @private | 112 @private |
112 content::WebContents* webContents_; // weak. | 113 content::WebContents* webContents_; // weak. |
113 autofill::AutofillDialogCocoa* autofillDialog_; // weak. | 114 autofill::AutofillDialogCocoa* autofillDialog_; // weak. |
114 | 115 |
115 base::scoped_nsobject<AutofillMainContainer> mainContainer_; | 116 base::scoped_nsobject<AutofillMainContainer> mainContainer_; |
116 base::scoped_nsobject<AutofillSignInContainer> signInContainer_; | 117 base::scoped_nsobject<AutofillSignInContainer> signInContainer_; |
117 base::scoped_nsobject<AutofillAccountChooser> accountChooser_; | 118 base::scoped_nsobject<AutofillAccountChooser> accountChooser_; |
118 base::scoped_nsobject<AutofillOverlayController> overlayController_; | 119 base::scoped_nsobject<AutofillOverlayController> overlayController_; |
119 base::scoped_nsobject<NSTextField> loadingShieldTextField_; | 120 base::scoped_nsobject<AutofillLoadingShieldController> |
| 121 loadingShieldController_; |
120 base::scoped_nsobject<NSTextField> titleTextField_; | 122 base::scoped_nsobject<NSTextField> titleTextField_; |
121 base::scoped_nsobject<NSTextView> fieldEditor_; | 123 base::scoped_nsobject<NSTextView> fieldEditor_; |
122 } | 124 } |
123 | 125 |
124 // Designated initializer. The WebContents cannot be NULL. | 126 // Designated initializer. The WebContents cannot be NULL. |
125 - (id)initWithWebContents:(content::WebContents*)webContents | 127 - (id)initWithWebContents:(content::WebContents*)webContents |
126 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog; | 128 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog; |
127 | 129 |
128 // A child view request re-layouting. | 130 // A child view request re-layouting. |
129 - (void)requestRelayout; | 131 - (void)requestRelayout; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 forInput:(const autofill::DetailInput&)input; | 169 forInput:(const autofill::DetailInput&)input; |
168 - (void)setTextContents:(NSString*)text | 170 - (void)setTextContents:(NSString*)text |
169 ofSuggestionForSection:(autofill::DialogSection)section; | 171 ofSuggestionForSection:(autofill::DialogSection)section; |
170 - (void)activateFieldForInput:(const autofill::DetailInput&)input; | 172 - (void)activateFieldForInput:(const autofill::DetailInput&)input; |
171 - (content::WebContents*)getSignInWebContents; | 173 - (content::WebContents*)getSignInWebContents; |
172 - (BOOL)IsShowingOverlay; | 174 - (BOOL)IsShowingOverlay; |
173 | 175 |
174 @end | 176 @end |
175 | 177 |
176 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ | 178 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ |
OLD | NEW |