OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PASSWORD_GENERATION_POPUP_VIEW_ANDROI
D_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_ANDROI
D_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_ANDROI
D_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_ANDROI
D_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" | 13 #include "chrome/browser/ui/autofill/password_generation_popup_view.h" |
| 14 #include "ui/android/view_android.h" |
14 | 15 |
15 namespace autofill { | 16 namespace autofill { |
16 | 17 |
17 class PasswordGenerationPopupController; | 18 class PasswordGenerationPopupController; |
18 | 19 |
19 // The android implementation of the password generation UI. | 20 // The android implementation of the password generation UI. |
20 class PasswordGenerationPopupViewAndroid : public PasswordGenerationPopupView { | 21 class PasswordGenerationPopupViewAndroid : public PasswordGenerationPopupView { |
21 public: | 22 public: |
22 // Builds the UI for the |controller|. | 23 // Builds the UI for the |controller|. |
23 explicit PasswordGenerationPopupViewAndroid( | 24 explicit PasswordGenerationPopupViewAndroid( |
(...skipping 25 matching lines...) Expand all Loading... |
49 void UpdateBoundsAndRedrawPopup() override; | 50 void UpdateBoundsAndRedrawPopup() override; |
50 void PasswordSelectionUpdated() override; | 51 void PasswordSelectionUpdated() override; |
51 bool IsPointInPasswordBounds(const gfx::Point& point) override; | 52 bool IsPointInPasswordBounds(const gfx::Point& point) override; |
52 | 53 |
53 // Weak pointer to the controller. | 54 // Weak pointer to the controller. |
54 PasswordGenerationPopupController* controller_; | 55 PasswordGenerationPopupController* controller_; |
55 | 56 |
56 // The corresponding java object. | 57 // The corresponding java object. |
57 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 58 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
58 | 59 |
| 60 // Popup view to be anchored to the container. |
| 61 ui::ViewAndroid::ScopedAnchorView popup_; |
| 62 |
59 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewAndroid); | 63 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewAndroid); |
60 }; | 64 }; |
61 | 65 |
62 } // namespace autofill | 66 } // namespace autofill |
63 | 67 |
64 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_AND
ROID_H_ | 68 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_AND
ROID_H_ |
OLD | NEW |