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

Side by Side Diff: chrome/browser/ui/android/infobars/account_chooser_infobar.h

Issue 861103002: Credentials chooser UI for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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_ACCOUNT_CHOOSER_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
7
8 #include <jni.h>
9
10 #include <string>
11
12 #include "base/android/scoped_java_ref.h"
13 #include "base/macros.h"
14 #include "base/strings/string16.h"
Peter Kasting 2015/02/16 20:37:07 This #include is unused.
melandory 2015/02/17 16:16:58 Done.
15 #include "chrome/browser/password_manager/account_chooser_infobar_delegate_andro id.h"
Peter Kasting 2015/02/16 20:37:07 I believe you can eliminate this and simply forwar
melandory 2015/02/17 16:16:58 Done.
16 #include "chrome/browser/ui/android/infobars/infobar_android.h"
17
18 // The Android infobar that allows user to choose credentials for login.
19 class AccountChooserInfoBar : public InfoBarAndroid {
20 public:
21 explicit AccountChooserInfoBar(
22 scoped_ptr<AccountChooserInfoBarDelegateAndroid> delegate);
23 ~AccountChooserInfoBar() override = default;
24
25 void OnCredentialClicked(JNIEnv* env,
26 jobject obj,
27 jint credential_item,
28 jint credential_type);
29
30 private:
31 // InfoBarAndroid implementation:
32 virtual base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
33 JNIEnv* env) override;
34 virtual void ProcessButton(int action,
35 const std::string& action_value) override;
36
37 void ChooseCredential(int type, int index);
38
39 AccountChooserInfoBarDelegateAndroid* GetDelegate();
40
41 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBar);
42 };
43
44 // Registers native methods.
45 bool RegisterAccountChooserInfoBar(JNIEnv* env);
46
47 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698