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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm

Issue 171783003: rAc: partial revert of 251484 to show correct sections in views dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm
index ad66cf9e417f1db93ed951966d9273245857679d..3abd320bc46cbe6c15b0080b480112ba4c80a5d6 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_view_tester_cocoa.mm
@@ -22,6 +22,7 @@
- (void)activateFieldForType:(autofill::ServerFieldType)type;
- (content::WebContents*)getSignInWebContents;
- (BOOL)isShowingOverlay;
+- (BOOL)isShowingSection:(autofill::DialogSection)section;
@end
@@ -61,6 +62,10 @@
return ![[overlayController_ view] isHidden];
}
+- (BOOL)isShowingSection:(autofill::DialogSection)section {
+ return ![[[mainContainer_ sectionForId:section] view] isHidden];
+}
+
@end
namespace autofill {
@@ -133,6 +138,11 @@ bool AutofillDialogViewTesterCocoa::IsShowingOverlay() const {
return [controller() isShowingOverlay];
}
+bool AutofillDialogViewTesterCocoa::IsShowingSection(
+ autofill::DialogSection section) const {
+ return [controller() isShowingSection:section];
+}
+
AutofillDialogWindowController*
AutofillDialogViewTesterCocoa::controller() const {
return dialog_->sheet_delegate_;

Powered by Google App Engine
This is Rietveld 408576698