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_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ |
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 jboolean all_permissions_granted); | 61 jboolean all_permissions_granted); |
62 | 62 |
63 private: | 63 private: |
64 PermissionUpdateInfoBarDelegate( | 64 PermissionUpdateInfoBarDelegate( |
65 content::WebContents* web_contents, | 65 content::WebContents* web_contents, |
66 const std::vector<std::string>& android_permissions, | 66 const std::vector<std::string>& android_permissions, |
67 int permission_msg_id, | 67 int permission_msg_id, |
68 const PermissionUpdatedCallback& callback); | 68 const PermissionUpdatedCallback& callback); |
69 ~PermissionUpdateInfoBarDelegate() override; | 69 ~PermissionUpdateInfoBarDelegate() override; |
70 | 70 |
| 71 // InfoBarDelegate: |
| 72 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| 73 |
71 // PermissionInfoBarDelegate: | 74 // PermissionInfoBarDelegate: |
72 int GetIconId() const override; | 75 int GetIconId() const override; |
73 base::string16 GetMessageText() const override; | 76 base::string16 GetMessageText() const override; |
74 | 77 |
75 // ConfirmInfoBarDelegate: | 78 // ConfirmInfoBarDelegate: |
76 int GetButtons() const override; | 79 int GetButtons() const override; |
77 base::string16 GetButtonLabel(InfoBarButton button) const override; | 80 base::string16 GetButtonLabel(InfoBarButton button) const override; |
78 bool Accept() override; | 81 bool Accept() override; |
79 bool Cancel() override; | 82 bool Cancel() override; |
80 | 83 |
81 // InfoBarDelegate: | 84 // InfoBarDelegate: |
82 void InfoBarDismissed() override; | 85 void InfoBarDismissed() override; |
83 | 86 |
84 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; | 87 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; |
85 std::vector<std::string> android_permissions_; | 88 std::vector<std::string> android_permissions_; |
86 int permission_msg_id_; | 89 int permission_msg_id_; |
87 PermissionUpdatedCallback callback_; | 90 PermissionUpdatedCallback callback_; |
88 | 91 |
89 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); | 92 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); |
90 }; | 93 }; |
91 | 94 |
92 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ | 95 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ |
OLD | NEW |