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

Unified Diff: chrome/android/java_staging/res/layout/new_tab_page_incognito.xml

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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
Index: chrome/android/java_staging/res/layout/new_tab_page_incognito.xml
diff --git a/chrome/android/java_staging/res/layout/new_tab_page_incognito.xml b/chrome/android/java_staging/res/layout/new_tab_page_incognito.xml
new file mode 100644
index 0000000000000000000000000000000000000000..17a0eae65dcc960d8572bad4e2751d6286538eda
--- /dev/null
+++ b/chrome/android/java_staging/res/layout/new_tab_page_incognito.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2015 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. -->
+
+<org.chromium.chrome.browser.ntp.IncognitoNewTabPageView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/ntp_content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingTop="@dimen/tab_strip_height" >
+
+ <org.chromium.chrome.browser.ntp.NewTabScrollView
+ android:id="@+id/ntp_scrollview"
+ android:background="@color/ntp_bg_incognito"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingTop="@dimen/toolbar_height_no_shadow"
+ android:fadingEdgeLength="9dp"
+ android:fillViewport="false"
+ android:focusable="true"
+ android:focusableInTouchMode="true"
+ android:requiresFadingEdge="vertical"
+ android:contentDescription="@string/accessibility_new_incognito_tab_page" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:orientation="vertical"
+ android:paddingStart="32dp"
+ android:paddingEnd="32dp"
+ android:paddingTop="24dp"
+ android:paddingBottom="16dp" >
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="19dp"
+ android:contentDescription="@null"
+ android:src="@drawable/incognito_splash"/>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:fontFamily="sans-serif-light"
+ android:text="@string/new_tab_incognito_header"
+ android:textColor="#d2d2d2"
+ android:textSize="24sp" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="32dp"
+ android:layout_marginBottom="10dp"
+ android:maxWidth="660dp"
+ android:singleLine="false"
+ android:text="@string/new_tab_incognito_message"
+ android:textColor="#bdbdbd"
+ android:textSize="14sp"
+ android:lineSpacingMultiplier="1.2" />
+
+ <TextView
+ android:id="@+id/learn_more"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="?attr/listChoiceBackgroundIndicator"
+ android:clickable="true"
+ android:focusable="true"
+ android:fontFamily="sans-serif-medium"
+ android:padding="16dp"
+ android:text="@string/learn_more"
+ android:textAllCaps="true"
+ android:textColor="#03a9f4"
+ android:textSize="14sp" />
+
+ </LinearLayout>
+
+ </org.chromium.chrome.browser.ntp.NewTabScrollView>
+
+</org.chromium.chrome.browser.ntp.IncognitoNewTabPageView>

Powered by Google App Engine
This is Rietveld 408576698