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. -->
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.
11 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
12 style="@style/AlertDialogContent"
13 android:orientation="vertical">
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">
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" />
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" />
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" />