<?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.
-->
<org.chromium.chrome.browser.customtabs.features.toolbar.CustomTabToolbar
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/custom_tabs_control_container_height">
<LinearLayout
android:id="@+id/close_minimize_layout"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginEnd="42dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageButton
android:id="@+id/close_button"
style="@style/ToolbarButton"
android:layout_gravity="start|center_vertical"
android:contentDescription="@string/close_tab" />
<ViewStub
android:id="@+id/minimize_button_stub"
style="@style/ToolbarButton"
android:inflatedId="@+id/custom_tabs_minimize_button"
android:layout="@layout/custom_tabs_minimize_button"
android:layout_gravity="start|center_vertical"
app:tint="@color/default_icon_color_tint_list" />
</LinearLayout>
<org.chromium.ui.widget.ChromeImageView
android:id="@+id/incognito_cct_logo_image_view"
style="@style/LocationBarButton"
android:layout_width="@dimen/location_bar_icon_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:scaleType="center"
app:srcCompat="@drawable/ic_incognito_cct_24dp"
android:visibility="gone"
android:contentDescription="@string/accessibility_incognito_badge"/>
<FrameLayout
android:id="@+id/location_bar_frame_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" >
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/security_button"
style="@style/LocationBarButton"
android:layout_width="@dimen/location_bar_lock_icon_width"
android:layout_height="@dimen/location_bar_lock_icon_height"
android:layout_gravity="center_vertical"
android:scaleType="center"
android:visibility="gone"
app:tint="@color/default_icon_color_tint_list" />
<org.chromium.chrome.browser.customtabs.features.toolbar.TitleAndUrlLayout
android:id="@+id/title_url_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:importantForAccessibility="no"
android:background="@null" >
<TextView
android:id="@+id/title_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginBottom="@dimen/custom_tabs_toolbar_vertical_padding"
android:background="@null"
android:ellipsize="end"
android:inputType="none"
android:maxLines="1"
android:paddingRight="@dimen/toolbar_edge_padding"
tools:ignore="RtlHardcoded"
style="@style/TextAppearance.TextLarge.Primary"
android:visibility="gone" />
<LinearLayout
android:id="@+id/url_bar_wrapper"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:orientation="horizontal"
android:layout_gravity="bottom"
android:layoutDirection="ltr">
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/security_icon"
android:layout_width="@dimen/location_bar_icon_width"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:scaleType="fitCenter"
android:visibility="gone"
app:tint="@color/default_icon_color_tint_list"
tools:ignore="ContentDescription"
style="@style/LocationBarButton"/>
<org.chromium.chrome.browser.omnibox.UrlBarApi26
android:id="@+id/url_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
android:inputType="none"
android:singleLine="true"
android:paddingEnd="@dimen/toolbar_edge_padding"
android:layout_gravity="bottom"
style="@style/TextAppearance.TextSmall.Primary" />
</LinearLayout>
</org.chromium.chrome.browser.customtabs.features.toolbar.TitleAndUrlLayout>
<ViewStub
android:id="@+id/branding_stub"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout="@layout/custom_tabs_toolbar_branding_layout"
android:inflatedId="@+id/branding_layout" />
<ViewStub
android:id="@+id/maximize_button_stub"
android:inflatedId="@+id/custom_tabs_sidepanel_maximize"
android:layout_width="@dimen/location_bar_action_icon_width"
android:layout_height="@dimen/location_bar_action_icon_height"
android:layout="@layout/custom_tabs_sidepanel_maximize"
android:layout_gravity="center_vertical|right"
android:gravity="center_vertical"
android:visibility="gone"
tools:ignore="RtlHardcoded"
app:tint="@color/default_icon_color_tint_list" />
</FrameLayout>
<LinearLayout
android:id="@+id/action_buttons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="42dp"
android:layout_gravity="center_vertical|end"
android:gravity="center_vertical"
android:orientation="horizontal" />
<org.chromium.chrome.browser.toolbar.menu_button.MenuButton
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|end"
android:layout_width="42dp"
android:paddingEnd="4dp"
android:id="@+id/menu_button_wrapper">
<org.chromium.ui.widget.ChromeImageButton
android:id="@+id/menu_button"
style="@style/ToolbarButton"
android:src="@drawable/ic_more_vert_24dp"
android:layout_gravity="center"
android:clickable="true"
android:focusable="true"
android:contentDescription="@string/accessibility_toolbar_btn_menu"
android:background="@null"
app:tint="@color/default_icon_color_tint_list" />
</org.chromium.chrome.browser.toolbar.menu_button.MenuButton>
</org.chromium.chrome.browser.customtabs.features.toolbar.CustomTabToolbar>