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" |
(...skipping 21 matching lines...) Expand all Loading... |
32 void PasswordSelected(JNIEnv* env, jobject object); | 32 void PasswordSelected(JNIEnv* env, jobject object); |
33 | 33 |
34 // Registers the popup with JNI. | 34 // Registers the popup with JNI. |
35 static bool Register(JNIEnv* env); | 35 static bool Register(JNIEnv* env); |
36 | 36 |
37 private: | 37 private: |
38 // The popup owns itself. | 38 // The popup owns itself. |
39 virtual ~PasswordGenerationPopupViewAndroid(); | 39 virtual ~PasswordGenerationPopupViewAndroid(); |
40 | 40 |
41 // PasswordGenerationPopupView implementation. | 41 // PasswordGenerationPopupView implementation. |
42 virtual void Show() override; | 42 void Show() override; |
43 virtual void Hide() override; | 43 void Hide() override; |
44 virtual gfx::Size GetPreferredSizeOfPasswordView() override; | 44 gfx::Size GetPreferredSizeOfPasswordView() override; |
45 virtual void UpdateBoundsAndRedrawPopup() override; | 45 void UpdateBoundsAndRedrawPopup() override; |
46 virtual void PasswordSelectionUpdated() override; | 46 void PasswordSelectionUpdated() override; |
47 virtual bool IsPointInPasswordBounds(const gfx::Point& point) override; | 47 bool IsPointInPasswordBounds(const gfx::Point& point) override; |
48 | 48 |
49 // Weak pointer to the controller. | 49 // Weak pointer to the controller. |
50 PasswordGenerationPopupController* controller_; | 50 PasswordGenerationPopupController* controller_; |
51 | 51 |
52 // The corresponding java object. | 52 // The corresponding java object. |
53 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 53 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewAndroid); | 55 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupViewAndroid); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace autofill | 58 } // namespace autofill |
59 | 59 |
60 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_AND
ROID_H_ | 60 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_PASSWORD_GENERATION_POPUP_VIEW_AND
ROID_H_ |
OLD | NEW |