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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 135933003: rAc: split TestableAutofillDialogView implementation into its own class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with mac nits fixed Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 namespace content { 47 namespace content {
48 class WebContents; 48 class WebContents;
49 } 49 }
50 50
51 namespace autofill { 51 namespace autofill {
52 52
53 class AutofillDataModel; 53 class AutofillDataModel;
54 class AutofillDialogView; 54 class AutofillDialogView;
55 class AutofillPopupControllerImpl; 55 class AutofillPopupControllerImpl;
56 class DataModelWrapper; 56 class DataModelWrapper;
57 class TestableAutofillDialogView;
58 57
59 namespace risk { 58 namespace risk {
60 class Fingerprint; 59 class Fingerprint;
61 } 60 }
62 61
63 namespace wallet { 62 namespace wallet {
64 class WalletSigninHelper; 63 class WalletSigninHelper;
65 } 64 }
66 65
67 // This class drives the dialog that appears when a site uses the imperative 66 // This class drives the dialog that appears when a site uses the imperative
(...skipping 16 matching lines...) Expand all
84 content::WebContents* contents, 83 content::WebContents* contents,
85 const FormData& form_structure, 84 const FormData& form_structure,
86 const GURL& source_url, 85 const GURL& source_url,
87 const base::Callback<void(const FormStructure*)>& callback); 86 const base::Callback<void(const FormStructure*)>& callback);
88 87
89 // AutofillDialogController implementation. 88 // AutofillDialogController implementation.
90 virtual void Show() OVERRIDE; 89 virtual void Show() OVERRIDE;
91 virtual void Hide() OVERRIDE; 90 virtual void Hide() OVERRIDE;
92 virtual void TabActivated() OVERRIDE; 91 virtual void TabActivated() OVERRIDE;
93 92
94 // Returns |view_| as a testable version of itself (if |view_| exists and
95 // actually implements |AutofillDialogView::GetTestableView()|).
96 TestableAutofillDialogView* GetTestableView();
97
98 // AutofillDialogViewDelegate implementation. 93 // AutofillDialogViewDelegate implementation.
99 virtual base::string16 DialogTitle() const OVERRIDE; 94 virtual base::string16 DialogTitle() const OVERRIDE;
100 virtual base::string16 AccountChooserText() const OVERRIDE; 95 virtual base::string16 AccountChooserText() const OVERRIDE;
101 virtual base::string16 SignInLinkText() const OVERRIDE; 96 virtual base::string16 SignInLinkText() const OVERRIDE;
102 virtual base::string16 SpinnerText() const OVERRIDE; 97 virtual base::string16 SpinnerText() const OVERRIDE;
103 virtual base::string16 EditSuggestionText() const OVERRIDE; 98 virtual base::string16 EditSuggestionText() const OVERRIDE;
104 virtual base::string16 CancelButtonText() const OVERRIDE; 99 virtual base::string16 CancelButtonText() const OVERRIDE;
105 virtual base::string16 ConfirmButtonText() const OVERRIDE; 100 virtual base::string16 ConfirmButtonText() const OVERRIDE;
106 virtual base::string16 SaveLocallyText() const OVERRIDE; 101 virtual base::string16 SaveLocallyText() const OVERRIDE;
107 virtual base::string16 SaveLocallyTooltip() const OVERRIDE; 102 virtual base::string16 SaveLocallyTooltip() const OVERRIDE;
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 773
779 // A username string we display in the card scrambling/generated overlay. 774 // A username string we display in the card scrambling/generated overlay.
780 base::string16 submitted_cardholder_name_; 775 base::string16 submitted_cardholder_name_;
781 776
782 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 777 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
783 }; 778 };
784 779
785 } // namespace autofill 780 } // namespace autofill
786 781
787 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 782 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698