1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
9 Defines all the widgets that each of the types of JS modal dialogs
10 need (alerts, confirms and prompts). When we inflate the layout
11 in JSModalDialogHolder we show hide the widgets we need as appropriate
12 for the type of dialog we need to show.
13 TODO(benm): Move this into the framework once we are integrated with the
16 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17 android:layout_width="match_parent"
18 android:layout_height="match_parent"
19 android:orientation="vertical"
20 android:padding="5dp">
22 <ScrollView android:id="@+id/js_modal_dialog_scroll_view"
23 android:layout_width="match_parent"
24 android:layout_height="0dp"
25 android:layout_weight="1"
26 android:layout_marginStart="10dp"
27 android:layout_marginTop="5dp"
28 android:layout_marginBottom="5dp">
30 <TextView android:id="@+id/js_modal_dialog_message"
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_gravity="start"
34 android:textAppearance="?android:attr/textAppearanceMedium"
39 <EditText android:id="@+id/js_modal_dialog_prompt"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 android:singleLine="true"
43 android:visibility="gone"
44 android:contentDescription="@string/accessibility_js_modal_dialog_prompt"
47 <CheckBox android:id="@+id/suppress_js_modal_dialogs"
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_gravity="start"
51 android:textAppearance="?android:attr/textAppearanceSmall"
52 android:text="@string/suppress_js_modal_dialogs"