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

Side by Side 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: Rebase 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
7 android:orientation="vertical"
8 android:gravity="start"
9 style="@style/AlertDialogContent" >
10
11 <TextView
12 android:id="@+id/text"
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"
15 android:layout_marginEnd="@dimen/infobar_control_margin_between_items"
16 android:gravity="center_vertical"
17 android:textSize="@dimen/infobar_text_size"
18 android:paddingTop="0dp"
19 android:drawablePadding="8dp"
20 android:layout_marginTop="10dp" />
gone 2016/10/27 20:33:34 nit: move this margin up next to the other layout_
dominickn 2016/10/27 23:37:12 Done.
21
22 <LinearLayout
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:layout_marginTop="8dp"
26 android:paddingStart="8dp"
27 android:gravity="bottom">
28
29 <TextView
30 android:id="@+id/permission_dialog_persist_message"
31 android:layout_width="0dp"
32 android:layout_height="wrap_content"
33 android:layout_weight="1"
34 android:layout_marginEnd="@dimen/infobar_control_margin_between_item s"
35 android:gravity="center_vertical"
36 android:textSize="@dimen/infobar_text_size" />
37
38 <android.support.v7.widget.SwitchCompat
39 android:id="@+id/permission_dialog_persist_toggle"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content" />
42
43 </LinearLayout>
44 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698