Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Unified Diff: chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h

Issue 1138653003: Move card unmask interfaces and controller into the autofill component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing override declaration Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h
diff --git a/chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h b/chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h
index 66d3e2d2d4945c30a6e0c05363161617b9b5858f..6312df902f5bd0d285f7734d4d5eadebf13e3397 100644
--- a/chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h
+++ b/chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.h
@@ -10,15 +10,18 @@
#include "base/android/jni_string.h"
#include "base/android/scoped_java_ref.h"
#include "base/strings/string16.h"
-#include "chrome/browser/ui/autofill/card_unmask_prompt_view.h"
+#include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
+
+namespace content {
+class WebContents;
+}
namespace autofill {
class CardUnmaskPromptViewAndroid : public CardUnmaskPromptView {
public:
- explicit CardUnmaskPromptViewAndroid(CardUnmaskPromptController* controller);
-
- void Show();
+ explicit CardUnmaskPromptViewAndroid(CardUnmaskPromptController* controller,
+ content::WebContents* web_contents);
bool CheckUserInputValidity(JNIEnv* env, jobject obj, jstring response);
void OnUserInput(JNIEnv* env,
@@ -30,6 +33,7 @@ class CardUnmaskPromptViewAndroid : public CardUnmaskPromptView {
void PromptDismissed(JNIEnv* env, jobject obj);
// CardUnmaskPromptView implementation.
+ void Show() override;
void ControllerGone() override;
void DisableAndWaitForVerification() override;
void GotVerificationResult(const base::string16& error_message,
@@ -44,6 +48,7 @@ class CardUnmaskPromptViewAndroid : public CardUnmaskPromptView {
base::android::ScopedJavaGlobalRef<jobject> java_object_;
CardUnmaskPromptController* controller_;
+ content::WebContents* web_contents_;
DISALLOW_COPY_AND_ASSIGN(CardUnmaskPromptViewAndroid);
};
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/android/autofill/card_unmask_prompt_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698