Durable Storage: Refactor browser test and test the basic "deny" flow.
[chromium-blink-merge.git] / chrome / android / java / res / layout / js_modal_dialog.xml
blobfa2d6ee310487f729c3318cfe1530f0d38a58d38
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2012 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. -->
6 <!--
7      Defines all the widgets that each of the types of JS modal dialogs
8      need (alerts, confirms and prompts). After inflating this layout, we
9      remove the widgets that aren't needed for the current dialog type.
10 -->
11 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
12     style="@style/AlertDialogContent"
13     android:orientation="vertical">
15     <ScrollView
16         android:id="@+id/js_modal_dialog_scroll_view"
17         android:layout_width="match_parent"
18         android:layout_height="0dp"
19         android:layout_weight="1">
21         <TextView
22             android:id="@+id/js_modal_dialog_message"
23             style="@style/TextAppearance.AppCompat.Subhead"
24             android:layout_width="match_parent"
25             android:layout_height="wrap_content"
26             android:layout_gravity="start" />
28     </ScrollView>
30     <org.chromium.chrome.browser.widget.AlertDialogEditText
31         android:id="@+id/js_modal_dialog_prompt"
32         android:layout_width="match_parent"
33         android:layout_height="wrap_content"
34         android:singleLine="true"
35         android:visibility="gone"
36         android:contentDescription="@string/accessibility_js_modal_dialog_prompt"
37         android:inputType="text" />
39     <CheckBox
40         android:id="@+id/suppress_js_modal_dialogs"
41         android:layout_width="match_parent"
42         android:layout_height="wrap_content"
43         android:layout_gravity="start"
44         android:layout_marginTop="8dp"
45         android:textAppearance="?android:attr/textAppearanceSmall"
46         android:text="@string/suppress_js_modal_dialogs" />
48 </LinearLayout>