<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016 The Chromium Authors
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.NewTabPageLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/ntp_content"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal"
    android:orientation="vertical"
    android:gravity="center"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:paddingTop="@dimen/toolbar_height_no_shadow"
    android:visibility="gone" >

    <!-- Search provider logo -->
    <ViewStub
        android:id="@+id/logo_view_stub"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout="@layout/logo_view_layout" />

    <!-- Search box -->
    <ViewStub
        android:id="@+id/search_box_stub"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

    <!-- Composeplate / "AI Mode" -->
    <ViewStub
        android:id="@+id/composeplate_view_stub"
        android:layout_width="match_parent"
        android:layout_height="@dimen/composeplate_view_height"
        android:layout_marginTop="@dimen/composeplate_view_margin_top"
        android:layout="@layout/composeplate_view_layout"
        />

    <!-- Most Visited Tiles -->
    <ViewStub
        android:id="@+id/mv_tiles_layout_stub"
        android:inflatedId="@+id/mv_tiles_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/ntp_section_top_margin"
        android:layout_marginBottom="@dimen/ntp_section_bottom_margin"
        android:layout_marginLeft="@dimen/mvt_container_lateral_margin"
        android:layout_marginRight="@dimen/mvt_container_lateral_margin"
        android:layout="@layout/mv_tiles_layout" />

    <ViewStub
        android:id="@+id/signin_promo_view_container_stub"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout="@layout/signin_promo_view_new_tab_page" />

    <ViewStub
        android:id="@+id/home_modules_recycler_view_stub"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/ntp_section_top_margin"
        android:layout_marginBottom="@dimen/ntp_section_bottom_margin"
        android:layout="@layout/home_modules_recycler_view_layout"
        />

    <!-- Single tab card -->
    <ViewStub
        android:id="@+id/tab_switcher_module_container_stub"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout="@layout/tab_switcher_module_container" />

    <!-- Spacer for when there is no search provider logo. -->
    <View
        android:id="@+id/no_search_logo_spacer"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:visibility="gone" />
</org.chromium.chrome.browser.ntp.NewTabPageLayout>
