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 |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "chrome/browser/ui/autofill/autofill_popup_view.h" | 14 #include "chrome/browser/ui/autofill/autofill_popup_view.h" |
| 15 #include "ui/android/view_android.h" |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Rect; | 18 class Rect; |
18 } | 19 } |
19 | 20 |
20 namespace autofill { | 21 namespace autofill { |
21 | 22 |
22 class AutofillPopupController; | 23 class AutofillPopupController; |
23 | 24 |
24 class AutofillPopupViewAndroid : public AutofillPopupView { | 25 class AutofillPopupViewAndroid : public AutofillPopupView { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 58 |
58 AutofillPopupController* controller_; // weak. | 59 AutofillPopupController* controller_; // weak. |
59 | 60 |
60 // The index of the last item the user long-pressed (they will be shown a | 61 // The index of the last item the user long-pressed (they will be shown a |
61 // confirmation dialog). | 62 // confirmation dialog). |
62 int deleting_index_; | 63 int deleting_index_; |
63 | 64 |
64 // The corresponding java object. | 65 // The corresponding java object. |
65 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 66 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
66 | 67 |
| 68 // Popup view |
| 69 ui::ViewAndroid::ScopedAnchorView popup_view_; |
| 70 |
67 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); | 71 DISALLOW_COPY_AND_ASSIGN(AutofillPopupViewAndroid); |
68 }; | 72 }; |
69 | 73 |
70 } // namespace autofill | 74 } // namespace autofill |
71 | 75 |
72 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ | 76 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_POPUP_VIEW_ANDROID_H_ |
OLD | NEW |