<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018 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.components.browser_ui.bottomsheet.BottomSheet
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/bottom_sheet"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:clipChildren="false" >

    <view
        class="org.chromium.components.browser_ui.bottomsheet.BottomSheetView$ShadowLayerView"
        android:id="@+id/shadow_layer"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/top_round_shadow" />

    <View
        android:id="@+id/background"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/bottom_sheet_background" />

    <View
        android:id="@+id/keyboard_curtain"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:layout_gravity="bottom"
        android:background="@macro/default_bg_color"
        android:importantForAccessibility="no" />

    <ImageView
        android:id="@+id/handlebar"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal|top"
        android:paddingTop="6dp"
        android:importantForAccessibility="no"
        android:src="@drawable/drag_handlebar"
        android:visibility="gone" />

    <org.chromium.components.browser_ui.bottomsheet.TouchRestrictingFrameLayout
        android:importantForAccessibility="yes"
        android:id="@+id/bottom_sheet_content"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />


    <FrameLayout
        android:importantForAccessibility="yes"
        android:accessibilityTraversalBefore="@id/bottom_sheet_content"
        android:id="@+id/bottom_sheet_control_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

        <view
            class="org.chromium.components.browser_ui.bottomsheet.TouchRestrictingFrameLayout"
            android:id="@+id/bottom_sheet_toolbar_container"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

    </FrameLayout>

    <FrameLayout
        android:id="@+id/bottom_sheet_snackbar_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="start|bottom" />

</org.chromium.components.browser_ui.bottomsheet.BottomSheet>
