| 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..075065d86d87045b75aa46b19f38913f61d07dc1
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/android/autofill/instrument_unmask_prompt_view_android.h
|
| @@ -0,0 +1,45 @@
|
| +// 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 "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);
|
| +
|
| + virtual ~InstrumentUnmaskPromptViewAndroid();
|
| +
|
| + void Show();
|
| +
|
| + void PromptDismissed(JNIEnv* env, jobject obj, jstring response);
|
| +
|
| + static bool Register(JNIEnv* env);
|
| +
|
| + private:
|
| + // The corresponding java object.
|
| + base::android::ScopedJavaGlobalRef<jobject> java_object_;
|
| +
|
| + content::WebContents* web_contents_;
|
| + UnmaskCallback finished_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(InstrumentUnmaskPromptViewAndroid);
|
| +};
|
| +
|
| +} // namespace autofill
|
| +
|
| +#endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_INSTRUMENT_UNMASK_PROMPT_VIEW_ANDROID_H_
|
|
|