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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // PermissionInfoBarDelegate: | 58 // PermissionInfoBarDelegate: |
59 int GetIconId() const override; | 59 int GetIconId() const override; |
60 base::string16 GetMessageText() const override; | 60 base::string16 GetMessageText() const override; |
61 | 61 |
62 // ConfirmInfoBarDelegate: | 62 // ConfirmInfoBarDelegate: |
63 int GetButtons() const override; | 63 int GetButtons() const override; |
64 base::string16 GetButtonLabel(InfoBarButton button) const override; | 64 base::string16 GetButtonLabel(InfoBarButton button) const override; |
65 bool Accept() override; | 65 bool Accept() override; |
66 bool Cancel() override; | 66 bool Cancel() override; |
67 | 67 |
| 68 // InfoBarDelegate: |
| 69 void InfoBarDismissed() override; |
| 70 |
68 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; | 71 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; |
69 std::vector<ContentSettingsType> content_settings_types_; | 72 std::vector<ContentSettingsType> content_settings_types_; |
70 const PermissionUpdatedCallback callback_; | 73 PermissionUpdatedCallback callback_; |
71 ui::WindowAndroid* window_android_; | 74 ui::WindowAndroid* window_android_; |
72 | 75 |
73 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); | 76 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); |
74 }; | 77 }; |
75 | 78 |
76 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ | 79 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ |
OLD | NEW |