- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / android / java / res / layout / js_modal_dialog.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (c) 2012 The Chromium Authors. All rights reserved.
3
4      Use of this source code is governed by a BSD-style license that can be
5      found in the LICENSE file.
6 -->
7
8 <!--
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
14      Android tree.
15 -->
16 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
17     android:layout_width="match_parent"
18     android:layout_height="match_parent">
19     <LinearLayout
20         android:layout_width="match_parent"
21         android:layout_height="match_parent"
22         android:orientation="vertical"
23         android:padding="5dp">
24
25         <EditText android:id="@+id/js_modal_dialog_prompt"
26             android:layout_width="match_parent"
27             android:layout_height="wrap_content"
28             android:singleLine="true"
29             android:visibility="gone"
30             android:contentDescription="@string/accessibility_js_modal_dialog_prompt"
31             />
32
33         <CheckBox android:id="@+id/suppress_js_modal_dialogs"
34             android:textAppearance="?android:attr/textAppearanceSmall"
35             android:layout_width="match_parent"
36             android:layout_height="wrap_content"
37             android:text="@string/suppress_js_modal_dialogs"
38             android:layout_gravity="start"
39             />
40
41     </LinearLayout>
42 </ScrollView>