Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: chrome/android/java/res/layout/js_modal_dialog.xml

Issue 11360207: Add Java resources to content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove obsolete findbugs warnings Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/res/layout/autofill_text.xml ('k') | chrome/android/java/res/values-sw600dp/dimens.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/android/java/res/layout/autofill_text.xml ('k') | chrome/android/java/res/values-sw600dp/dimens.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698