| 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/window_android_helper.h" | 13 #include "chrome/browser/ui/android/window_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.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 namespace autofill { | 22 namespace autofill { |
| 23 | 23 |
| 24 PasswordGenerationPopupViewAndroid::PasswordGenerationPopupViewAndroid( | 24 PasswordGenerationPopupViewAndroid::PasswordGenerationPopupViewAndroid( |
| 25 PasswordGenerationPopupController* controller) | 25 PasswordGenerationPopupController* controller) |
| 26 : controller_(controller) {} | 26 : controller_(controller) {} |
| 27 | 27 |
| 28 void PasswordGenerationPopupViewAndroid::SavedPasswordsLinkClicked( | 28 void PasswordGenerationPopupViewAndroid::SavedPasswordsLinkClicked( |
| 29 JNIEnv* env, jobject obj) { | 29 JNIEnv* env, jobject obj) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 return false; | 114 return false; |
| 115 } | 115 } |
| 116 | 116 |
| 117 // static | 117 // static |
| 118 PasswordGenerationPopupView* PasswordGenerationPopupView::Create( | 118 PasswordGenerationPopupView* PasswordGenerationPopupView::Create( |
| 119 PasswordGenerationPopupController* controller) { | 119 PasswordGenerationPopupController* controller) { |
| 120 return new PasswordGenerationPopupViewAndroid(controller); | 120 return new PasswordGenerationPopupViewAndroid(controller); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace autofill | 123 } // namespace autofill |
| OLD | NEW |