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

Unified Diff: chrome/browser/autofill/autofill_dialog_controller_mac.h

Issue 3039014: AutoFill Profiles dialog handles multi-select and delete on Mac (Closed)
Patch Set: Merge with trunk. Created 10 years, 5 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/autofill/autofill_dialog_controller_mac.h
diff --git a/chrome/browser/autofill/autofill_dialog_controller_mac.h b/chrome/browser/autofill/autofill_dialog_controller_mac.h
index 3318443012e22ea1b37e3c803268202a4b528976..7a7faa74d6fbcb5cc72549de86bc397f0763f1ec 100644
--- a/chrome/browser/autofill/autofill_dialog_controller_mac.h
+++ b/chrome/browser/autofill/autofill_dialog_controller_mac.h
@@ -34,6 +34,9 @@ class Profile;
// cards with section headers for both.
IBOutlet AutoFillTableView* tableView_;
+ // Outlet to "Edit..." button. Here for unit testing purposes.
+ IBOutlet NSButton* editButton_;
+
// This observer is passed in by the caller of the dialog. When the dialog
// is dismissed |observer_| is called with new values for the addresses and
// credit cards.
@@ -68,6 +71,10 @@ class Profile;
// "Remove" buttons.
BOOL itemIsSelected_;
+ // State for |multipleSelected| property used in bindings for "Edit..."
+ // button.
+ BOOL multipleSelected_;
+
// Utility object to save and restore dialog position.
scoped_nsobject<WindowSizeAutosaver> sizeSaver_;
@@ -97,6 +104,10 @@ class Profile;
// edit and delete buttons are bound to this property.
@property (nonatomic) BOOL itemIsSelected;
+// Property representing multiple selection state in |tableView_|. Enabled
+// state of edit button is bound to this property.
+@property (nonatomic) BOOL multipleSelected;
+
// Main interface for displaying an application modal AutoFill dialog on screen.
// This class method creates a new |AutoFillDialogController| and runs it as a
// modal dialog. The controller autoreleases itself when the dialog is closed.
@@ -168,6 +179,9 @@ class Profile;
- (AutoFillCreditCardSheetController*)creditCardSheetController;
- (void)selectAddressAtIndex:(size_t)i;
- (void)selectCreditCardAtIndex:(size_t)i;
+- (void)addSelectedAddressAtIndex:(size_t)i;
+- (void)addSelectedCreditCardAtIndex:(size_t)i;
+- (BOOL)editButtonEnabled;
@end
#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_MAC_

Powered by Google App Engine
This is Rietveld 408576698