OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/autofill/autofill_dialog_view_tester_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_view_tester_views.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" | 8 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
9 #include "chrome/browser/ui/views/autofill/decorated_textfield.h" | 9 #include "chrome/browser/ui/views/autofill/decorated_textfield.h" |
10 #include "ui/base/models/combobox_model.h" | 10 #include "ui/base/models/combobox_model.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 | 87 |
88 content::WebContents* AutofillDialogViewTesterViews::GetSignInWebContents() { | 88 content::WebContents* AutofillDialogViewTesterViews::GetSignInWebContents() { |
89 return view_->sign_in_web_view_->web_contents(); | 89 return view_->sign_in_web_view_->web_contents(); |
90 } | 90 } |
91 | 91 |
92 bool AutofillDialogViewTesterViews::IsShowingOverlay() const { | 92 bool AutofillDialogViewTesterViews::IsShowingOverlay() const { |
93 return view_->overlay_view_->visible(); | 93 return view_->overlay_view_->visible(); |
94 } | 94 } |
95 | 95 |
| 96 bool AutofillDialogViewTesterViews::IsShowingSection(DialogSection section) |
| 97 const { |
| 98 return view_->GroupForSection(section)->container->visible(); |
| 99 } |
| 100 |
96 } // namespace autofill | 101 } // namespace autofill |
OLD | NEW |