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

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

Issue 2359363004: Add a button to OIB to launch an instant app if it exists. (Closed)
Patch Set: Comments Created 4 years, 3 months 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 | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivitySessionTracker.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/website_settings.xml
diff --git a/chrome/android/java/res/layout/website_settings.xml b/chrome/android/java/res/layout/website_settings.xml
index 063f53c87db308ae917b5c8adcdfbb323b4b4bd7..08f3a5a5cb4844a014aefb1b3a0ccd6f0fd11929 100644
--- a/chrome/android/java/res/layout/website_settings.xml
+++ b/chrome/android/java/res/layout/website_settings.xml
@@ -5,7 +5,9 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="8dp"
@@ -58,6 +60,23 @@
android:textSize="14sp" />
</LinearLayout>
+ <org.chromium.ui.widget.ButtonCompat
+ android:id="@+id/website_settings_instant_app_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="start"
+ android:layout_marginEnd="@dimen/website_settings_popup_padding_sides"
+ android:layout_marginStart="@dimen/website_settings_popup_padding_sides"
+ android:layout_marginTop="12dp"
+ android:layout_marginBottom="4dp"
+ android:paddingEnd="@dimen/website_settings_popup_button_padding_sides"
+ android:paddingStart="@dimen/website_settings_popup_button_padding_sides"
+ android:text="@string/page_info_instant_app_button"
+ android:textSize="14sp"
+ android:textColor="@android:color/white"
+ chrome:buttonRaised="false"
+ chrome:buttonColor="@color/app_banner_install_button_bg" />
+
<LinearLayout
android:id="@+id/website_settings_permissions_list"
android:layout_width="match_parent"
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeActivitySessionTracker.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698