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_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 explicit CardUnmaskPromptViewAndroid(CardUnmaskPromptController* controller, | 23 explicit CardUnmaskPromptViewAndroid(CardUnmaskPromptController* controller, |
24 content::WebContents* web_contents); | 24 content::WebContents* web_contents); |
25 | 25 |
26 bool CheckUserInputValidity(JNIEnv* env, jobject obj, jstring response); | 26 bool CheckUserInputValidity(JNIEnv* env, jobject obj, jstring response); |
27 void OnUserInput(JNIEnv* env, | 27 void OnUserInput(JNIEnv* env, |
28 jobject obj, | 28 jobject obj, |
29 jstring cvc, | 29 jstring cvc, |
30 jstring month, | 30 jstring month, |
31 jstring year, | 31 jstring year, |
32 jboolean should_store_locally); | 32 jboolean should_store_locally); |
| 33 void OnNewCardLinkClicked(JNIEnv* env, jobject obj); |
33 void PromptDismissed(JNIEnv* env, jobject obj); | 34 void PromptDismissed(JNIEnv* env, jobject obj); |
34 | 35 |
35 // CardUnmaskPromptView implementation. | 36 // CardUnmaskPromptView implementation. |
36 void Show() override; | 37 void Show() override; |
37 void ControllerGone() override; | 38 void ControllerGone() override; |
38 void DisableAndWaitForVerification() override; | 39 void DisableAndWaitForVerification() override; |
39 void GotVerificationResult(const base::string16& error_message, | 40 void GotVerificationResult(const base::string16& error_message, |
40 bool allow_retry) override; | 41 bool allow_retry) override; |
41 | 42 |
42 static bool Register(JNIEnv* env); | 43 static bool Register(JNIEnv* env); |
43 | 44 |
44 private: | 45 private: |
45 ~CardUnmaskPromptViewAndroid() override; | 46 ~CardUnmaskPromptViewAndroid() override; |
46 | 47 |
47 // The corresponding java object. | 48 // The corresponding java object. |
48 base::android::ScopedJavaGlobalRef<jobject> java_object_; | 49 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
49 | 50 |
50 CardUnmaskPromptController* controller_; | 51 CardUnmaskPromptController* controller_; |
51 content::WebContents* web_contents_; | 52 content::WebContents* web_contents_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); | 54 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace autofill | 57 } // namespace autofill |
57 | 58 |
58 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 59 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
OLD | NEW |