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

Unified Diff: chrome/browser/ui/autofill/autofill_popup_controller_impl.cc

Issue 11740033: [Autofill] Add Mac implementation for the in-browser process popup view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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/autofill/autofill_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index 6473184eadf65474d343151d4f7d8ea8de7e3194..e1dc38df1201d875977754ebdc28a86b2070132e 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -191,6 +191,8 @@ int AutofillPopupControllerImpl::GetIconResourceID(
}
bool AutofillPopupControllerImpl::CanDelete(size_t index) {
+ // TODO(isherman): AddressBook suggestions on Mac should not be drawn as
+ // deleteable.
int id = identifiers_[index];
return id > 0 ||
id == WebAutofillClient::MenuItemIDAutocompleteEntry ||
@@ -432,6 +434,8 @@ bool AutofillPopupControllerImpl::RemoveSelectedLine() {
if (HasSuggestions()) {
delegate_->ClearPreviewedForm();
+ // TODO(isherman): This doesn't update the origin as it should on Mac, due
+ // to the flipped coordinate system.
UpdateBoundsAndRedrawPopup();
} else {
HideInternal();

Powered by Google App Engine
This is Rietveld 408576698