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

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

Issue 756333003: Prompt for unmasking Wallet credit card on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix AW Created 6 years 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/instrument_unmask_prompt_view_android.h
diff --git a/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h b/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..8914831e81336727eb707028bb3faaa96e95227b
--- /dev/null
+++ b/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h
@@ -0,0 +1,47 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_
+#define CHROME_BROWSER_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_
+
+#include <jni.h>
+
+#include "base/android/jni_string.h"
+#include "base/android/scoped_java_ref.h"
+#include "base/strings/string16.h"
+#include "chrome/browser/ui/autofill/instrument_unmask_prompt_view.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace autofill {
+
+class InstrumentUnmaskPromptViewAndroid : public InstrumentUnmaskPromptView {
+ public:
+ InstrumentUnmaskPromptViewAndroid(content::WebContents* web_contents,
+ const UnmaskCallback& finished);
+
+ void Show();
+
+ void PromptDismissed(JNIEnv* env, jobject obj, jstring response);
+
+ static bool Register(JNIEnv* env);
+
+ private:
+ virtual ~InstrumentUnmaskPromptViewAndroid();
+
+ // The corresponding java object.
+ base::android::ScopedJavaGlobalRef<jobject> java_object_;
+
+ content::WebContents* web_contents_;
+ UnmaskCallback finished_;
+ base::string16 response_;
+
+ DISALLOW_COPY_AND_ASSIGN(InstrumentUnmaskPromptViewAndroid);
+};
+
+} // namespace autofill
+
+#endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698