OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "base/android/jni_string.h" |
| 11 #include "base/android/scoped_java_ref.h" |
| 12 #include "base/strings/string16.h" |
| 13 #include "chrome/browser/ui/autofill/card_unmask_prompt_view.h" |
| 14 |
| 15 namespace content { |
| 16 class WebContents; |
| 17 } |
| 18 |
| 19 namespace autofill { |
| 20 |
| 21 class CardUnmaskPromptViewAndroid : public CardUnmaskPromptView { |
| 22 public: |
| 23 CardUnmaskPromptViewAndroid(content::WebContents* web_contents, |
| 24 const UnmaskCallback& finished); |
| 25 |
| 26 void Show(); |
| 27 |
| 28 void PromptDismissed(JNIEnv* env, jobject obj, jstring response); |
| 29 |
| 30 static bool Register(JNIEnv* env); |
| 31 |
| 32 private: |
| 33 virtual ~CardUnmaskPromptViewAndroid(); |
| 34 |
| 35 // The corresponding java object. |
| 36 base::android::ScopedJavaGlobalRef<jobject> java_object_; |
| 37 |
| 38 content::WebContents* web_contents_; |
| 39 UnmaskCallback finished_; |
| 40 base::string16 response_; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid); |
| 43 }; |
| 44 |
| 45 } // namespace autofill |
| 46 |
| 47 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_CARD_UNMASK_PROMPT_VIEW_ANDROID_H_ |
OLD | NEW |