OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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_INFOBARS_AUTOFILL_CC_INFOBAR_H_ | |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CC_INFOBAR_H_ | |
7 | |
8 #include <jni.h> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | |
13 | |
14 namespace autofill { | |
15 class AutofillCCInfoBarDelegate; | |
16 } | |
17 | |
18 // Android implementation of the infobar for saving credit card information. | |
19 class AutofillCCInfoBar : public ConfirmInfoBar { | |
20 public: | |
21 // Register the JNI bindings. | |
Peter Kasting
2016/01/08 00:34:31
Function comments should be declarative ("Register
please use gerrit instead
2016/01/12 00:47:25
Done.
| |
22 static bool Register(JNIEnv* env); | |
Peter Kasting
2016/01/08 00:34:31
Nit: Per Google style guide, static methods go aft
please use gerrit instead
2016/01/12 00:47:25
Done.
| |
23 | |
24 explicit AutofillCCInfoBar( | |
25 scoped_ptr<autofill::AutofillCCInfoBarDelegate> delegate); | |
26 ~AutofillCCInfoBar() override; | |
27 | |
28 // Called when a link in the legal message text was clicked. | |
29 void OnLegalMessageLinkClicked(JNIEnv* env, jobject obj, jstring url); | |
30 | |
31 private: | |
32 // ConfirmInfoBar override. | |
33 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | |
34 JNIEnv* env) override; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(AutofillCCInfoBar); | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_AUTOFILL_CC_INFOBAR_H_ | |
OLD | NEW |