| 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 #include "chrome/browser/ui/android/autofill/password_generation_popup_view_andr
oid.h" | 5 #include "chrome/browser/ui/android/autofill/password_generation_popup_view_andr
oid.h" |
| 6 | 6 |
| 7 #include <jni.h> | 7 #include <jni.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "chrome/browser/ui/android/view_android_helper.h" | 13 #include "chrome/browser/ui/android/view_android_helper.h" |
| 14 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" | 14 #include "chrome/browser/ui/autofill/password_generation_popup_controller.h" |
| 15 #include "content/public/browser/android/content_view_core.h" | 15 #include "content/public/browser/android/content_view_core.h" |
| 16 #include "jni/PasswordGenerationPopupBridge_jni.h" | 16 #include "jni/PasswordGenerationPopupBridge_jni.h" |
| 17 #include "ui/android/view_android.h" | 17 #include "ui/android/view_android.h" |
| 18 #include "ui/android/window_android.h" | 18 #include "ui/android/window_android.h" |
| 19 #include "ui/gfx/geometry/rect_f.h" | 19 #include "ui/gfx/geometry/rect_f.h" |
| 20 #include "ui/gfx/range/range.h" | 20 #include "ui/gfx/range/range.h" |
| 21 | 21 |
| 22 using base::android::JavaParamRef; |
| 23 using base::android::ScopedJavaLocalRef; |
| 24 |
| 22 namespace autofill { | 25 namespace autofill { |
| 23 | 26 |
| 24 PasswordGenerationPopupViewAndroid::PasswordGenerationPopupViewAndroid( | 27 PasswordGenerationPopupViewAndroid::PasswordGenerationPopupViewAndroid( |
| 25 PasswordGenerationPopupController* controller) | 28 PasswordGenerationPopupController* controller) |
| 26 : controller_(controller) {} | 29 : controller_(controller) {} |
| 27 | 30 |
| 28 void PasswordGenerationPopupViewAndroid::SavedPasswordsLinkClicked( | 31 void PasswordGenerationPopupViewAndroid::SavedPasswordsLinkClicked( |
| 29 JNIEnv* env, | 32 JNIEnv* env, |
| 30 const JavaParamRef<jobject>& obj) { | 33 const JavaParamRef<jobject>& obj) { |
| 31 if (controller_) | 34 if (controller_) |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 return false; | 121 return false; |
| 119 } | 122 } |
| 120 | 123 |
| 121 // static | 124 // static |
| 122 PasswordGenerationPopupView* PasswordGenerationPopupView::Create( | 125 PasswordGenerationPopupView* PasswordGenerationPopupView::Create( |
| 123 PasswordGenerationPopupController* controller) { | 126 PasswordGenerationPopupController* controller) { |
| 124 return new PasswordGenerationPopupViewAndroid(controller); | 127 return new PasswordGenerationPopupViewAndroid(controller); |
| 125 } | 128 } |
| 126 | 129 |
| 127 } // namespace autofill | 130 } // namespace autofill |
| OLD | NEW |