| 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/memory/scoped_nsobject.h" | 8 #include "base/memory/scoped_nsobject.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 scoped_nsobject<AutofillMainContainer> mainContainer_; | 79 scoped_nsobject<AutofillMainContainer> mainContainer_; |
| 80 scoped_nsobject<AutofillSignInContainer> signInContainer_; | 80 scoped_nsobject<AutofillSignInContainer> signInContainer_; |
| 81 scoped_nsobject<AutofillAccountChooser> accountChooser_; | 81 scoped_nsobject<AutofillAccountChooser> accountChooser_; |
| 82 } | 82 } |
| 83 | 83 |
| 84 // Designated initializer. The WebContents cannot be NULL. | 84 // Designated initializer. The WebContents cannot be NULL. |
| 85 - (id)initWithWebContents:(content::WebContents*)webContents | 85 - (id)initWithWebContents:(content::WebContents*)webContents |
| 86 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog; | 86 autofillDialog:(autofill::AutofillDialogCocoa*)autofillDialog; |
| 87 | 87 |
| 88 // A child view request re-layouting. |
| 89 - (void)requestRelayout; |
| 90 |
| 88 // Validate data. If it is valid, notify the controller that the user would | 91 // Validate data. If it is valid, notify the controller that the user would |
| 89 // like to use the data. | 92 // like to use the data. |
| 90 - (IBAction)accept:(id)sender; | 93 - (IBAction)accept:(id)sender; |
| 91 | 94 |
| 92 // User cancels dialog. | 95 // User cancels dialog. |
| 93 - (IBAction)cancel:(id)sender; | 96 - (IBAction)cancel:(id)sender; |
| 94 | 97 |
| 95 // Forwarding AutofillDialogView calls. | 98 // Forwarding AutofillDialogView calls. |
| 96 - (void)updateAccountChooser; | 99 - (void)updateAccountChooser; |
| 97 - (void)getInputs:(autofill::DetailOutputMap*)outputs | 100 - (void)getInputs:(autofill::DetailOutputMap*)outputs |
| 98 forSection:(autofill::DialogSection)section; | 101 forSection:(autofill::DialogSection)section; |
| 99 - (content::NavigationController*)showSignIn; | 102 - (content::NavigationController*)showSignIn; |
| 100 - (void)hideSignIn; | 103 - (void)hideSignIn; |
| 101 - (void)modelChanged; | 104 - (void)modelChanged; |
| 102 | 105 |
| 103 @end | 106 @end |
| 104 | 107 |
| 105 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ | 108 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_DIALOG_COCOA_H_ |
| OLD | NEW |