[Home] Add a Chrome Home specific incognito NTP

Desktop / Chromium - twellington [chromium.org] - 17 April 2017 17:57 EDT

Adds a ChromeHomeIncognitoNewTabPage displayed behind the BottomSheet when an incognito NTP is selected and an IncognitoBottomSheetContent that is displayed inside the "Home" tab of the BottomSheet in incognito mode. Also updates ChromeHomeNewTabPageTest.

BUG=695973

Review-Url: https://codereview.chromium.org/2809923003 Cr-Commit-Position: refs/heads/master@{#465036}

c72acf0 [Home] Add a Chrome Home specific incognito NTP
chrome/android/java/res/color/bottom_nav_tint.xml | 2 +-
.../java/res/color/bottom_nav_tint_incognito.xml | 9 +
.../layout/chrome_home_incognito_new_tab_page.xml | 56 ++++++
.../java/res/layout/chrome_home_new_tab_page.xml | 11 +-
.../res/layout/incognito_bottom_sheet_content.xml | 64 +++++++
.../java/res/layout/new_tab_page_incognito.xml | 16 +-
chrome/android/java/res/values-v17/styles.xml | 34 ++--
chrome/android/java/res/values/colors.xml | 6 +-
.../chrome/browser/compositor/layouts/Layout.java | 5 +
.../browser/ntp/ChromeHomeIncognitoNewTabPage.java | 64 +++++++
.../chrome/browser/ntp/ChromeHomeNewTabPage.java | 153 +----------------
.../browser/ntp/ChromeHomeNewTabPageBase.java | 191 +++++++++++++++++++++
.../browser/ntp/IncognitoBottomSheetContent.java | 85 +++++++++
.../chrome/browser/ntp/NativePageFactory.java | 11 +-
.../bottomsheet/BottomSheetContentController.java | 72 ++++++--
.../widget/bottomsheet/BottomSheetMetrics.java | 2 +
chrome/android/java_sources.gni | 3 +
.../browser/ntp/ChromeHomeNewTabPageTest.java | 60 +++++--
tools/metrics/actions/actions.xml | 8 +
19 files changed, 645 insertions(+), 207 deletions(-)

Upstream: git.chromium.org


  • Share