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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_popup_view_android.h

Issue 2727233003: Uses child views in Autofill Popup so we can trigger (Closed)
Patch Set: Removes NotifyAccessibilityEventForRow and InvalidateRow wrapper methods. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 28 matching lines...) Expand all
39 39
40 void PopupDismissed(JNIEnv* env, 40 void PopupDismissed(JNIEnv* env,
41 const base::android::JavaParamRef<jobject>& obj); 41 const base::android::JavaParamRef<jobject>& obj);
42 42
43 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env); 43 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env);
44 44
45 protected: 45 protected:
46 // AutofillPopupView implementation. 46 // AutofillPopupView implementation.
47 void Show() override; 47 void Show() override;
48 void Hide() override; 48 void Hide() override;
49 void InvalidateRow(size_t row) override; 49 void InvalidateRow(size_t row, bool is_selected) override {}
50 void UpdateBoundsAndRedrawPopup() override; 50 void OnSuggestionsChanged() override;
51 51
52 private: 52 private:
53 ~AutofillPopupViewAndroid() override; 53 ~AutofillPopupViewAndroid() override;
54 54
55 AutofillPopupController* controller_; // weak. 55 AutofillPopupController* controller_; // weak.
56 56
57 // The index of the last item the user long-pressed (they will be shown a 57 // The index of the last item the user long-pressed (they will be shown a
58 // confirmation dialog). 58 // confirmation dialog).
59 int deleting_index_; 59 int deleting_index_;
60 60
61 // The corresponding java object. 61 // The corresponding java object.
62 base::android::ScopedJavaGlobalRef<jobject> java_object_; 62 base::android::ScopedJavaGlobalRef<jobject> java_object_;
63 63
64 // Popup view 64 // Popup view
65 ui::ViewAndroid::ScopedAnchorView popup_view_; 65 ui::ViewAndroid::ScopedAnchorView popup_view_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); 67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid);
68 }; 68 };
69 69
70 } // namespace autofill 70 } // namespace autofill
71 71
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ 72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698