OLD | NEW |
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 Loading... |
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 OnSelectedRowChanged(int previous_row_selection, |
50 void UpdateBoundsAndRedrawPopup() override; | 50 int current_row_selection) override {} |
| 51 void OnSuggestionsChanged() override; |
51 | 52 |
52 private: | 53 private: |
53 ~AutofillPopupViewAndroid() override; | 54 ~AutofillPopupViewAndroid() override; |
54 | 55 |
55 AutofillPopupController* controller_; // weak. | 56 AutofillPopupController* controller_; // weak. |
56 | 57 |
57 // The index of the last item the user long-pressed (they will be shown a | 58 // The index of the last item the user long-pressed (they will be shown a |
58 // confirmation dialog). | 59 // confirmation dialog). |
59 int deleting_index_; | 60 int deleting_index_; |
60 | 61 |
61 // The corresponding java object. | 62 // The corresponding java object. |
62 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 63 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
63 | 64 |
64 // Popup view | 65 // Popup view |
65 ui::ViewAndroid::ScopedAnchorView popup_view_; | 66 ui::ViewAndroid::ScopedAnchorView popup_view_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); | 68 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace autofill | 71 } // namespace autofill |
71 | 72 |
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ | 73 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ |
OLD | NEW |