<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2015 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- The toolbar containing the URL bar, back button, and NTP button. -->
<org.chromium.chrome.browser.toolbar.top.ToolbarPhone
    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/toolbar"
    android:layout_width="match_parent"
    android:layout_height="@dimen/toolbar_height_no_shadow"
    android:minHeight="@dimen/toolbar_height_no_shadow">

    <org.chromium.chrome.browser.toolbar.home_button.HomeButton
        android:id="@+id/home_button"
        style="@style/ToolbarHoverableButton"
        android:src="@drawable/ic_home_24dp"
        android:contentDescription="@string/accessibility_toolbar_btn_home"
        android:tooltipText="@string/accessibility_toolbar_btn_home"
        android:visibility="gone"
        app:menuVerticalOverlapAnchor="false"
        app:menuMaxWidth="@dimen/home_button_list_menu_width"
        app:menuPositionedAtStart="true"
        app:tint="@color/default_icon_color_tint_list"/>

    <org.chromium.ui.widget.ChromeImageButton
        android:id="@+id/back_button"
        style="@style/ToolbarHoverableButton"
        android:src="@drawable/btn_back"
        android:contentDescription="@string/accessibility_toolbar_btn_back"
        android:tooltipText="@string/accessibility_toolbar_btn_back"
        app:tint="@color/default_icon_color_tint_list"
        android:visibility="gone" />

    <View
        android:id="@+id/location_bar_background_view"
        android:visibility="gone"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

    <org.chromium.chrome.browser.omnibox.LocationBarPhone
        android:id="@+id/location_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="top|left"
        android:paddingStart="@dimen/location_bar_start_padding"
        android:paddingEnd="@dimen/location_bar_end_padding"
        tools:ignore="RtlHardcoded" />

    <LinearLayout
        android:id="@+id/toolbar_buttons"
        android:orientation="horizontal"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="top|end"
        android:focusable="false"
        android:focusableInTouchMode="false">

        <ViewStub
            android:id="@+id/optional_button_stub"
            android:inflatedId="@+id/optional_toolbar_button_container"
            android:layout_gravity="top"
            android:visibility="gone"
            android:layout_width="52dp"
            style="@style/ToolbarHoverableButton"/>

        <ViewStub
            android:id="@+id/signin_button_stub"
            android:layout="@layout/signin_button_view"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:visibility="gone"/>

        <org.chromium.chrome.browser.toolbar.top.ToggleTabStackButton
            android:id="@+id/tab_switcher_button"
            style="@style/ToolbarHoverableButton"
            android:layout_gravity="top"
            android:clickable="false"
            app:menuMaxWidth="@dimen/tab_switcher_menu_width"
            app:menuVerticalOverlapAnchor="false"/>

        <include layout="@layout/menu_button"/>

    </LinearLayout>

</org.chromium.chrome.browser.toolbar.top.ToolbarPhone>
