Roll src/third_party/WebKit 3529d49:06e8485 (svn 202554:202555)
[chromium-blink-merge.git] / chrome / android / java / res / layout / js_modal_dialog.xml
blob4bd19f051598464dc418f516f5c902847c1d3dda
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:inputType="text" />
38     <CheckBox
39         android:id="@+id/suppress_js_modal_dialogs"
40         android:layout_width="match_parent"
41         android:layout_height="wrap_content"
42         android:layout_gravity="start"
43         android:layout_marginTop="16dp"
44         android:textAppearance="?android:attr/textAppearanceSmall"
45         android:text="@string/suppress_js_modal_dialogs" />
47 </LinearLayout>