Index: chrome/browser/ui/android/infobars/update_password_infobar.h |
diff --git a/chrome/browser/ui/android/infobars/update_password_infobar.h b/chrome/browser/ui/android/infobars/update_password_infobar.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9f35ad2a39ffa3755a305f902522ca392d014488 |
--- /dev/null |
+++ b/chrome/browser/ui/android/infobars/update_password_infobar.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2016 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_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ |
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ |
+ |
+#include "base/android/scoped_java_ref.h" |
+#include "base/macros.h" |
+#include "chrome/browser/password_manager/update_password_infobar_delegate.h" |
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
+ |
+// The Android infobar that offers the user the ability to update a password |
+// for the site. |
+class UpdatePasswordInfoBar : public ConfirmInfoBar { |
+ public: |
+ explicit UpdatePasswordInfoBar( |
+ scoped_ptr<UpdatePasswordInfoBarDelegate> delegate); |
+ |
Peter Kasting
2016/02/03 00:56:27
Nit: Unnecessary blank line
melandory
2016/02/12 19:19:37
Done.
|
+ ~UpdatePasswordInfoBar() override; |
+ |
+ void OnUpdateClicked(JNIEnv* env, jobject obj, jint form_id); |
+ |
+ 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.
|
+ |
+ int GetIdOfSelectedUsername(); |
+ |
+ private: |
+ // ConfirmInfoBar: |
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
+ JNIEnv* env) override; |
+ |
Peter Kasting
2016/02/03 00:56:27
Nit: Unnecessary blank line
melandory
2016/02/12 19:19:37
Done.
|
+ void OnLinkClicked(JNIEnv* env, |
+ const base::android::JavaParamRef<jobject>& obj) override; |
+ |
+ base::android::ScopedJavaGlobalRef<jobject> java_infobar_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(UpdatePasswordInfoBar); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_UPDATE_PASSWORD_INFOBAR_H_ |