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

Unified Diff: chrome/browser/ui/android/autofill/autofill_popup_view_android.h

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 7 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/android/autofill/autofill_popup_view_android.h
diff --git a/chrome/browser/ui/android/autofill/autofill_popup_view_android.h b/chrome/browser/ui/android/autofill/autofill_popup_view_android.h
index 8d4211bea31baa21734e3f82185d96016e32d652..10f6acd81305e4ee1e95fedf8531ec2ed8af197e 100644
--- a/chrome/browser/ui/android/autofill/autofill_popup_view_android.h
+++ b/chrome/browser/ui/android/autofill/autofill_popup_view_android.h
@@ -29,6 +29,10 @@ class AutofillPopupViewAndroid : public AutofillPopupView {
// Called when an autofill item was selected.
void SuggestionSelected(JNIEnv* env, jobject obj, jint list_index);
+ void DeletionRequested(JNIEnv* env, jobject obj, jint list_index);
+
+ void DeletionConfirmed(JNIEnv* env, jobject obj);
+
void PopupDismissed(JNIEnv* env, jobject obj);
static bool RegisterAutofillPopupViewAndroid(JNIEnv* env);
@@ -45,6 +49,10 @@ class AutofillPopupViewAndroid : public AutofillPopupView {
AutofillPopupController* controller_; // weak.
+ // The index of the last item the user long-pressed (they will be shown a
+ // confirmation dialog).
+ int deleting_index_;
+
// The corresponding java object.
base::android::ScopedJavaGlobalRef<jobject> java_object_;

Powered by Google App Engine
This is Rietveld 408576698