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

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

Issue 1281323003: Remove items on long press in keyboard accessory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Null out context. Rebase. Created 5 years, 4 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_keyboard_accessory_view.h
diff --git a/chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h b/chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h
index a146b38e16eb85757b139bfa111ef67704d8d713..10af07aa2c53d821facd77e257df78214663b36c 100644
--- a/chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h
+++ b/chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h
@@ -33,6 +33,10 @@ class AutofillKeyboardAccessoryView : 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 ViewDismissed(JNIEnv* env, jobject obj);
static bool RegisterAutofillKeyboardAccessoryView(JNIEnv* env);
@@ -49,6 +53,10 @@ class AutofillKeyboardAccessoryView : 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