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/card_unmask_prompt_controller.h" | 8 #include "chrome/browser/ui/autofill/card_unmask_prompt_controller.h" |
9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
10 #include "jni/CardUnmaskBridge_jni.h" | 10 #include "jni/CardUnmaskBridge_jni.h" |
11 #include "ui/base/android/view_android.h" | 11 #include "ui/android/view_android.h" |
12 #include "ui/base/android/window_android.h" | 12 #include "ui/android/window_android.h" |
13 | 13 |
14 namespace autofill { | 14 namespace autofill { |
15 | 15 |
16 CardUnmaskPromptView* CardUnmaskPromptView::CreateAndShow( | 16 CardUnmaskPromptView* CardUnmaskPromptView::CreateAndShow( |
17 CardUnmaskPromptController* controller) { | 17 CardUnmaskPromptController* controller) { |
18 CardUnmaskPromptViewAndroid* view = | 18 CardUnmaskPromptViewAndroid* view = |
19 new CardUnmaskPromptViewAndroid(controller); | 19 new CardUnmaskPromptViewAndroid(controller); |
20 view->Show(); | 20 view->Show(); |
21 return view; | 21 return view; |
22 } | 22 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 JNIEnv* env = base::android::AttachCurrentThread(); | 92 JNIEnv* env = base::android::AttachCurrentThread(); |
93 Java_CardUnmaskBridge_verificationFinished(env, java_object_.obj(), success); | 93 Java_CardUnmaskBridge_verificationFinished(env, java_object_.obj(), success); |
94 } | 94 } |
95 | 95 |
96 // static | 96 // static |
97 bool CardUnmaskPromptViewAndroid::Register(JNIEnv* env) { | 97 bool CardUnmaskPromptViewAndroid::Register(JNIEnv* env) { |
98 return RegisterNativesImpl(env); | 98 return RegisterNativesImpl(env); |
99 } | 99 } |
100 | 100 |
101 } // namespace autofill | 101 } // namespace autofill |
OLD | NEW |