OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_ | |
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_ | |
7 | |
8 #include "base/android/scoped_java_ref.h" | |
9 #include "base/basictypes.h" | |
10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" | |
11 | |
12 class PermissionGroupInfoBarDelegateAndroid; | |
13 | |
14 class PermissionGroupInfoBarAndroid : public ConfirmInfoBar { | |
15 public: | |
16 PermissionGroupInfoBarAndroid( | |
17 scoped_ptr<PermissionGroupInfoBarDelegateAndroid> delegate, | |
18 std::vector<int> permission_types); | |
19 ~PermissionGroupInfoBarAndroid() override; | |
20 | |
21 void OnCheckedStateUpdate(JNIEnv* env, | |
22 jobject obj, | |
23 jbooleanArray checkedState); | |
24 private: | |
gone
2015/09/25 14:41:14
nit: newline before
Lalit Maganti
2015/09/28 09:28:14
Done.
| |
25 // InfoBarAndroid overrides. | |
26 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | |
27 JNIEnv* env) override; | |
28 | |
29 PermissionGroupInfoBarDelegateAndroid* GetDelegate(); | |
30 | |
31 std::vector<int> permission_types_; | |
32 | |
33 base::android::ScopedJavaGlobalRef<jobject> java_infobar_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(PermissionGroupInfoBarAndroid); | |
36 }; | |
37 | |
38 // Register native methods. | |
39 bool RegisterPermissionGroupInfoBarAndroid(JNIEnv* env); | |
40 | |
41 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H _ | |
OLD | NEW |