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

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

Issue 2923393002: Make UI with PermissionRequestManager enabled match PermissionQueueController (Closed)
Patch Set: address comments Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_GROUPED_PERMISSION_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" 11 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
12 12
13 class GroupedPermissionInfoBarDelegate; 13 class GroupedPermissionInfoBarDelegate;
14 14
15 // TODO(timloh): This is incorrectly named as we've removed grouped permissions,
16 // rename it to PermissionInfoBar once crbug.com/606138 is done.
15 class GroupedPermissionInfoBar : public ConfirmInfoBar { 17 class GroupedPermissionInfoBar : public ConfirmInfoBar {
16 public: 18 public:
17 explicit GroupedPermissionInfoBar( 19 explicit GroupedPermissionInfoBar(
18 std::unique_ptr<GroupedPermissionInfoBarDelegate> delegate); 20 std::unique_ptr<GroupedPermissionInfoBarDelegate> delegate);
19 ~GroupedPermissionInfoBar() override; 21 ~GroupedPermissionInfoBar() override;
20 22
21 private: 23 private:
22 void ProcessButton(int action) override; 24 void ProcessButton(int action) override;
23 25
24 // InfoBarAndroid: 26 // InfoBarAndroid:
25 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( 27 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
26 JNIEnv* env) override; 28 JNIEnv* env) override;
27 29
28 GroupedPermissionInfoBarDelegate* GetDelegate(); 30 GroupedPermissionInfoBarDelegate* GetDelegate();
29 31
30 DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBar); 32 DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBar);
31 }; 33 };
32 34
33 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_ 35 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698