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

Side by Side Diff: chrome/browser/permissions/permission_update_infobar_delegate_android.h

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 4 years, 11 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698