Index: chrome/android/java/res/layout/js_modal_dialog.xml |
diff --git a/chrome/android/java/res/layout/js_modal_dialog.xml b/chrome/android/java/res/layout/js_modal_dialog.xml |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7cc6f519df752eb77859d43fcbabd8ff242bb517 |
--- /dev/null |
+++ b/chrome/android/java/res/layout/js_modal_dialog.xml |
@@ -0,0 +1,81 @@ |
+<?xml version="1.0" encoding="utf-8"?> |
+<!-- Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+ |
+ Use of this source code is governed by a BSD-style license that can be |
+ found in the LICENSE file. |
+--> |
+ |
+<!-- |
+ Defines all the widgets that each of the types of JS modal dialogs |
+ need (alerts, confirms and prompts). When we inflate the layout |
+ in JSModalDialogHolder we show hide the widgets we need as appropriate |
+ for the type of dialog we need to show. |
+ TODO(benm): Move this into the framework once we are integrated with the |
+ Android tree. |
+--> |
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent"> |
+ <LinearLayout |
+ android:layout_width="match_parent" |
+ android:layout_height="match_parent" |
+ android:orientation="vertical" |
+ android:padding="5dip"> |
+ |
+ <TextView android:id="@+id/js_modal_dialog_title" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_marginBottom="5dip" |
+ android:textAppearance="?android:attr/textAppearanceLarge" |
+ /> |
+ |
+ <View |
+ android:layout_height="1dip" |
+ android:layout_width="match_parent" |
+ android:background="@color/js_modal_dialog_title_separator" |
+ android:layout_marginBottom="20dip" |
+ /> |
+ |
+ <TextView android:id="@+id/js_modal_dialog_message" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:textAppearance="?android:attr/textAppearanceMedium" |
+ android:layout_marginBottom="5dip" |
+ /> |
+ |
+ <EditText android:id="@+id/js_modal_dialog_prompt" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:singleLine="true" |
+ android:visibility="gone" |
+ android:contentDescription="@string/accessibility_js_modal_dialog_prompt" |
+ /> |
+ |
+ <CheckBox android:id="@+id/suppress_js_modal_dialogs" |
+ android:textAppearance="?android:attr/textAppearanceSmall" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:text="@string/suppress_js_modal_dialogs" |
+ android:layout_gravity="left" |
+ /> |
+ |
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:orientation="horizontal" |
+ > |
+ <Button android:id="@+id/js_modal_dialog_button_confirm" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:text="@string/js_modal_dialog_confirm" |
+ android:layout_weight="1" |
+ /> |
+ <Button android:id="@+id/js_modal_dialog_button_cancel" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:text="@string/js_modal_dialog_cancel" |
+ android:layout_weight="1" |
+ /> |
+ </LinearLayout> |
+ </LinearLayout> |
+</ScrollView> |