| 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/card_unmask_prompt_view_android.h" | 5 #include "chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h" | 
| 6 | 6 | 
| 7 #include "chrome/browser/android/resource_mapper.h" | 7 #include "chrome/browser/android/resource_mapper.h" | 
| 8 #include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h" | 8 #include "chrome/browser/ui/autofill/create_card_unmask_prompt_view.h" | 
| 9 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller.h" | 9 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller.h" | 
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" | 
| 11 #include "jni/CardUnmaskBridge_jni.h" | 11 #include "jni/CardUnmaskBridge_jni.h" | 
| 12 #include "ui/android/view_android.h" | 12 #include "ui/android/view_android.h" | 
| 13 #include "ui/android/window_android.h" | 13 #include "ui/android/window_android.h" | 
| 14 | 14 | 
|  | 15 using base::android::JavaParamRef; | 
|  | 16 using base::android::ScopedJavaLocalRef; | 
|  | 17 | 
| 15 namespace autofill { | 18 namespace autofill { | 
| 16 | 19 | 
| 17 CardUnmaskPromptView* CreateCardUnmaskPromptView( | 20 CardUnmaskPromptView* CreateCardUnmaskPromptView( | 
| 18     CardUnmaskPromptController* controller, | 21     CardUnmaskPromptController* controller, | 
| 19     content::WebContents* web_contents) { | 22     content::WebContents* web_contents) { | 
| 20   return new CardUnmaskPromptViewAndroid(controller, web_contents); | 23   return new CardUnmaskPromptViewAndroid(controller, web_contents); | 
| 21 } | 24 } | 
| 22 | 25 | 
| 23 CardUnmaskPromptViewAndroid::CardUnmaskPromptViewAndroid( | 26 CardUnmaskPromptViewAndroid::CardUnmaskPromptViewAndroid( | 
| 24     CardUnmaskPromptController* controller, | 27     CardUnmaskPromptController* controller, | 
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 119   Java_CardUnmaskBridge_verificationFinished(env, java_object_.obj(), | 122   Java_CardUnmaskBridge_verificationFinished(env, java_object_.obj(), | 
| 120                                              message.obj(), allow_retry); | 123                                              message.obj(), allow_retry); | 
| 121 } | 124 } | 
| 122 | 125 | 
| 123 // static | 126 // static | 
| 124 bool CardUnmaskPromptViewAndroid::Register(JNIEnv* env) { | 127 bool CardUnmaskPromptViewAndroid::Register(JNIEnv* env) { | 
| 125   return RegisterNativesImpl(env); | 128   return RegisterNativesImpl(env); | 
| 126 } | 129 } | 
| 127 | 130 | 
| 128 }  // namespace autofill | 131 }  // namespace autofill | 
| OLD | NEW | 
|---|