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 #include "chrome/browser/ui/autofill/mock_autofill_dialog_controller.h" | 5 #include "chrome/browser/ui/autofill/mock_autofill_dialog_controller.h" |
6 #include "testing/gmock/include/gmock/gmock.h" | 6 #include "testing/gmock/include/gmock/gmock.h" |
7 | 7 |
8 namespace autofill { | 8 namespace autofill { |
9 | 9 |
10 MockAutofillDialogController::MockAutofillDialogController() { | 10 MockAutofillDialogController::MockAutofillDialogController() { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 } | 58 } |
59 | 59 |
60 bool MockAutofillDialogController::ShouldOfferToSaveInChrome() const { | 60 bool MockAutofillDialogController::ShouldOfferToSaveInChrome() const { |
61 return false; | 61 return false; |
62 } | 62 } |
63 | 63 |
64 gfx::Image MockAutofillDialogController::AccountChooserImage() { | 64 gfx::Image MockAutofillDialogController::AccountChooserImage() { |
65 return gfx::Image(); | 65 return gfx::Image(); |
66 } | 66 } |
67 | 67 |
| 68 bool MockAutofillDialogController::ShouldShowDetailArea() const { |
| 69 return false; |
| 70 } |
| 71 |
68 bool MockAutofillDialogController::ShouldShowProgressBar() const { | 72 bool MockAutofillDialogController::ShouldShowProgressBar() const { |
69 return false; | 73 return false; |
70 } | 74 } |
71 | 75 |
72 int MockAutofillDialogController::GetDialogButtons() const { | 76 int MockAutofillDialogController::GetDialogButtons() const { |
73 return ui::DIALOG_BUTTON_OK | ui::DIALOG_BUTTON_CANCEL; | 77 return ui::DIALOG_BUTTON_OK | ui::DIALOG_BUTTON_CANCEL; |
74 } | 78 } |
75 | 79 |
76 bool MockAutofillDialogController::ShouldShowDetailArea() const { | |
77 return false; | |
78 } | |
79 | |
80 bool MockAutofillDialogController::IsDialogButtonEnabled( | 80 bool MockAutofillDialogController::IsDialogButtonEnabled( |
81 ui::DialogButton button) const { | 81 ui::DialogButton button) const { |
82 return false; | 82 return false; |
83 } | 83 } |
84 | 84 |
| 85 DialogOverlayState MockAutofillDialogController::GetDialogOverlay() const { |
| 86 return DialogOverlayState(); |
| 87 } |
| 88 |
85 const std::vector<ui::Range>& | 89 const std::vector<ui::Range>& |
86 MockAutofillDialogController::LegalDocumentLinks() { | 90 MockAutofillDialogController::LegalDocumentLinks() { |
87 return range_; | 91 return range_; |
88 } | 92 } |
89 | 93 |
90 bool MockAutofillDialogController::SectionIsActive( | 94 bool MockAutofillDialogController::SectionIsActive( |
91 DialogSection section) const { | 95 DialogSection section) const { |
92 return false; | 96 return false; |
93 } | 97 } |
94 | 98 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 168 |
165 void MockAutofillDialogController::SignInLinkClicked() {} | 169 void MockAutofillDialogController::SignInLinkClicked() {} |
166 | 170 |
167 void MockAutofillDialogController::NotificationCheckboxStateChanged( | 171 void MockAutofillDialogController::NotificationCheckboxStateChanged( |
168 DialogNotification::Type type, | 172 DialogNotification::Type type, |
169 bool checked) {} | 173 bool checked) {} |
170 | 174 |
171 void MockAutofillDialogController::LegalDocumentLinkClicked( | 175 void MockAutofillDialogController::LegalDocumentLinkClicked( |
172 const ui::Range& range) {} | 176 const ui::Range& range) {} |
173 | 177 |
| 178 void MockAutofillDialogController::OverlayButtonPressed() {} |
| 179 |
174 void MockAutofillDialogController::OnCancel() {} | 180 void MockAutofillDialogController::OnCancel() {} |
175 | 181 |
176 void MockAutofillDialogController::OnAccept() {} | 182 void MockAutofillDialogController::OnAccept() {} |
177 | 183 |
178 content::WebContents* MockAutofillDialogController::web_contents() { | 184 content::WebContents* MockAutofillDialogController::web_contents() { |
179 return NULL; | 185 return NULL; |
180 } | 186 } |
181 | 187 |
182 } // namespace autofill | 188 } // namespace autofill |
OLD | NEW |