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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env); | 46 static bool RegisterAutofillPopupViewAndroid(JNIEnv* env); |
47 | 47 |
48 protected: | 48 protected: |
49 // AutofillPopupView implementation. | 49 // AutofillPopupView implementation. |
50 void Show() override; | 50 void Show() override; |
51 void Hide() override; | 51 void Hide() override; |
52 void InvalidateRow(size_t row) override; | 52 void InvalidateRow(size_t row) override; |
53 void UpdateBoundsAndRedrawPopup() override; | 53 void UpdateBoundsAndRedrawPopup() override; |
54 | 54 |
55 private: | 55 private: |
56 ~AutofillPopupViewAndroid() override; | |
57 | |
58 AutofillPopupController* controller_; // weak. | 56 AutofillPopupController* controller_; // weak. |
59 | 57 |
60 // 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 |
61 // confirmation dialog). | 59 // confirmation dialog). |
62 int deleting_index_; | 60 int deleting_index_; |
63 | 61 |
64 // The corresponding java object. | 62 // The corresponding java object. |
65 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 63 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
66 | 64 |
67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); | 65 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); |
68 }; | 66 }; |
69 | 67 |
70 } // namespace autofill | 68 } // namespace autofill |
71 | 69 |
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ | 70 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ |
OLD | NEW |