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_UPDATE_PASSWORD_INFOBAR_H_ | |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ | |
7 | |
8 #include "base/android/scoped_java_ref.h" | |
9 #include "base/macros.h" | |
10 #include "chrome/browser/password_manager/update_password_infobar_delegate.h" | |
11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | |
12 | |
13 // The Android infobar that offers the user the ability to update a password | |
14 // for the site. | |
15 class UpdatePasswordInfoBar : public ConfirmInfoBar { | |
16 public: | |
17 explicit UpdatePasswordInfoBar( | |
18 scoped_ptr<UpdatePasswordInfoBarDelegate> delegate); | |
19 | |
Peter Kasting
2016/02/03 00:56:27
Nit: Unnecessary blank line
melandory
2016/02/12 19:19:37
Done.
| |
20 ~UpdatePasswordInfoBar() override; | |
21 | |
22 void OnUpdateClicked(JNIEnv* env, jobject obj, jint form_id); | |
23 | |
24 static bool Register(JNIEnv* env); | |
Peter Kasting
2016/02/03 00:56:27
Nit: Prefer to place static functions above non-st
melandory
2016/02/12 19:19:37
Done.
| |
25 | |
26 int GetIdOfSelectedUsername(); | |
27 | |
28 private: | |
29 // ConfirmInfoBar: | |
30 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | |
31 JNIEnv* env) override; | |
32 | |
Peter Kasting
2016/02/03 00:56:27
Nit: Unnecessary blank line
melandory
2016/02/12 19:19:37
Done.
| |
33 void OnLinkClicked(JNIEnv* env, | |
34 const base::android::JavaParamRef<jobject>& obj) override; | |
35 | |
36 base::android::ScopedJavaGlobalRef<jobject> java_infobar_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(UpdatePasswordInfoBar); | |
39 }; | |
40 | |
41 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ | |
OLD | NEW |