OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 15 matching lines...) Expand all Loading... |
26 jobject obj, | 26 jobject obj, |
27 jint credential_item, | 27 jint credential_item, |
28 jint credential_type); | 28 jint credential_type); |
29 | 29 |
30 private: | 30 private: |
31 // InfoBarAndroid: | 31 // InfoBarAndroid: |
32 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | 32 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
33 JNIEnv* env) override; | 33 JNIEnv* env) override; |
34 void ProcessButton(int action, const std::string& action_value) override; | 34 void ProcessButton(int action, const std::string& action_value) override; |
35 AccountChooserInfoBarDelegateAndroid* GetDelegate(); | 35 AccountChooserInfoBarDelegateAndroid* GetDelegate(); |
| 36 void SetJavaInfoBar( |
| 37 const base::android::JavaRef<jobject>& java_info_bar) override; |
36 | 38 |
37 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBar); | 39 DISALLOW_COPY_AND_ASSIGN(AccountChooserInfoBar); |
38 }; | 40 }; |
39 | 41 |
40 // Registers native methods. | 42 // Registers native methods. |
41 bool RegisterAccountChooserInfoBar(JNIEnv* env); | 43 bool RegisterAccountChooserInfoBar(JNIEnv* env); |
42 | 44 |
43 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ | 45 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_ACCOUNT_CHOOSER_INFOBAR_H_ |
OLD | NEW |