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

Unified Diff: chrome/browser/ui/android/infobars/permission_group_infobar_android.h

Issue 1332063003: permissions: implement coalesced permissions on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request-multiple
Patch Set: Address review comments Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/infobars/permission_group_infobar_android.h
diff --git a/chrome/browser/ui/android/infobars/permission_group_infobar_android.h b/chrome/browser/ui/android/infobars/permission_group_infobar_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..95c5b85dc693ae3f235793fb62457d25962141ce
--- /dev/null
+++ b/chrome/browser/ui/android/infobars/permission_group_infobar_android.h
@@ -0,0 +1,41 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_
+
+#include "base/android/scoped_java_ref.h"
+#include "base/basictypes.h"
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
+
+class PermissionGroupInfoBarDelegateAndroid;
+
+class PermissionGroupInfoBarAndroid : public ConfirmInfoBar {
+ public:
+ PermissionGroupInfoBarAndroid(
+ scoped_ptr<PermissionGroupInfoBarDelegateAndroid> delegate,
+ std::vector<int> permission_types);
+ ~PermissionGroupInfoBarAndroid() override;
+
+ void OnCheckedStateUpdate(JNIEnv* env,
+ jobject obj,
+ jbooleanArray checkedState);
+ private:
gone 2015/09/25 14:41:14 nit: newline before
Lalit Maganti 2015/09/28 09:28:14 Done.
+ // InfoBarAndroid overrides.
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
+ JNIEnv* env) override;
+
+ PermissionGroupInfoBarDelegateAndroid* GetDelegate();
+
+ std::vector<int> permission_types_;
+
+ base::android::ScopedJavaGlobalRef<jobject> java_infobar_;
+
+ DISALLOW_COPY_AND_ASSIGN(PermissionGroupInfoBarAndroid);
+};
+
+// Register native methods.
+bool RegisterPermissionGroupInfoBarAndroid(JNIEnv* env);
+
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698