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" |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" | 14 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class WebContents; | 17 class WebContents; |
18 } | 18 } |
19 | 19 |
20 namespace autofill { | 20 namespace autofill { |
21 | 21 |
| 22 class CardUnmaskPromptController; |
| 23 |
22 class CardUnmaskPromptViewAndroid : public CardUnmaskPromptView { | 24 class CardUnmaskPromptViewAndroid : public CardUnmaskPromptView { |
23 public: | 25 public: |
24 explicit CardUnmaskPromptViewAndroid(CardUnmaskPromptController* controller, | 26 explicit CardUnmaskPromptViewAndroid(CardUnmaskPromptController* controller, |
25 content::WebContents* web_contents); | 27 content::WebContents* web_contents); |
26 | 28 |
27 bool CheckUserInputValidity( | 29 bool CheckUserInputValidity( |
28 JNIEnv* env, | 30 JNIEnv* env, |
29 const base::android::JavaParamRef<jobject>& obj, | 31 const base::android::JavaParamRef<jobject>& obj, |
30 const base::android::JavaParamRef<jstring>& response); | 32 const base::android::JavaParamRef<jstring>& response); |
31 void OnUserInput(JNIEnv* env, | 33 void OnUserInput(JNIEnv* env, |
(...skipping 24 matching lines...) Expand all Loading... |
56 | 58 |
57 CardUnmaskPromptController* controller_; | 59 CardUnmaskPromptController* controller_; |
58 content::WebContents* web_contents_; | 60 content::WebContents* web_contents_; |
59 | 61 |
60 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); | 62 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); |
61 }; | 63 }; |
62 | 64 |
63 } // namespace autofill | 65 } // namespace autofill |
64 | 66 |
65 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ | 67 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
OLD | NEW |