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

Unified Diff: chrome/android/java/res/layout/permission_dialog.xml

Issue 2446063002: Implement a modal permission dialog on Android gated by a feature. (Closed)
Patch Set: Move delegate creation and dispatch into constructor Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionInfoBar.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/permission_dialog.xml
diff --git a/chrome/android/java/res/layout/permission_dialog.xml b/chrome/android/java/res/layout/permission_dialog.xml
new file mode 100644
index 0000000000000000000000000000000000000000..fc6e1fea56a3053e1767896c7e3d8067bec328ff
--- /dev/null
+++ b/chrome/android/java/res/layout/permission_dialog.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 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.
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:gravity="start"
+ style="@style/AlertDialogContent" >
+
+ <TextView
+ android:id="@+id/text"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="@dimen/infobar_control_margin_between_items"
+ android:layout_marginTop="10dp"
+ android:gravity="center_vertical"
+ android:textSize="@dimen/infobar_text_size"
+ android:paddingTop="0dp"
+ android:drawablePadding="8dp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="8dp"
+ android:paddingStart="32dp"
+ android:gravity="bottom">
+
+ <TextView
+ android:id="@+id/permission_dialog_persist_message"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_marginEnd="@dimen/infobar_control_margin_between_items"
+ android:gravity="center_vertical"
+ android:textSize="@dimen/infobar_text_size" />
+
+ <android.support.v7.widget.SwitchCompat
+ android:id="@+id/permission_dialog_persist_toggle"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ </LinearLayout>
+</LinearLayout>
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/infobar/PermissionInfoBar.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698