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