Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: chrome/android/java/res/layout/custom_tabs_control_container.xml

Issue 2410603002: Inflate toolbar layouts in ControlContainer (Closed)
Patch Set: fix ID Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 <org.chromium.chrome.browser.toolbar.ToolbarControlContainer xmlns:android="http ://schemas.android.com/apk/res/android" 5 <org.chromium.chrome.browser.toolbar.ToolbarControlContainer xmlns:android="http ://schemas.android.com/apk/res/android"
6 android:id="@+id/control_container" 6 android:id="@+id/control_container"
7 android:layout_width="match_parent" 7 android:layout_width="match_parent"
8 android:layout_height="wrap_content" 8 android:layout_height="wrap_content"
9 android:minHeight="@dimen/custom_tabs_control_container_height" > 9 android:minHeight="@dimen/custom_tabs_control_container_height" >
10 <view 10 <view
11 class="org.chromium.chrome.browser.toolbar.ToolbarControlContainer$Toolb arViewResourceFrameLayout" 11 class="org.chromium.chrome.browser.toolbar.ToolbarControlContainer$Toolb arViewResourceFrameLayout"
12 android:id="@+id/toolbar_container" 12 android:id="@+id/toolbar_container"
13 android:layout_width="match_parent" 13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"> 14 android:layout_height="wrap_content">
15 <include 15 <ViewStub
16 android:id="@+id/toolbar" 16 android:id="@+id/toolbar_stub"
17 android:layout_width="match_parent" 17 android:layout_width="match_parent"
18 android:layout_height="@dimen/custom_tabs_control_container_height" 18 android:layout_height="@dimen/custom_tabs_control_container_height" />
19 layout="@layout/custom_tabs_toolbar" />
20 <ImageView 19 <ImageView
21 android:id="@+id/toolbar_shadow" 20 android:id="@+id/toolbar_shadow"
22 android:src="@drawable/toolbar_shadow" 21 android:src="@drawable/toolbar_shadow"
23 android:layout_width="match_parent" 22 android:layout_width="match_parent"
24 android:layout_height="wrap_content" 23 android:layout_height="wrap_content"
25 android:layout_marginTop="@dimen/custom_tabs_control_container_heigh t" 24 android:layout_marginTop="@dimen/custom_tabs_control_container_heigh t"
26 android:scaleType="fitXY" 25 android:scaleType="fitXY"
27 android:contentDescription="@null" /> 26 android:contentDescription="@null" />
28 <ViewStub 27 <ViewStub
29 android:id="@+id/find_toolbar_stub" 28 android:id="@+id/find_toolbar_stub"
30 android:inflatedId="@+id/find_toolbar" 29 android:inflatedId="@+id/find_toolbar"
31 android:visibility="gone" 30 android:visibility="gone"
32 android:layout_marginTop="@dimen/tab_strip_height" 31 android:layout_marginTop="@dimen/tab_strip_height"
33 android:layout_width="match_parent" 32 android:layout_width="match_parent"
34 android:layout_height="@dimen/custom_tabs_control_container_height" 33 android:layout_height="@dimen/custom_tabs_control_container_height"
35 android:layout="@layout/find_toolbar" /> 34 android:layout="@layout/find_toolbar" />
36 <ViewStub 35 <ViewStub
37 android:id="@+id/find_toolbar_tablet_stub" 36 android:id="@+id/find_toolbar_tablet_stub"
38 android:inflatedId="@+id/find_toolbar" 37 android:inflatedId="@+id/find_toolbar"
39 android:layout_width="@dimen/find_in_page_popup_width" 38 android:layout_width="@dimen/find_in_page_popup_width"
40 android:layout_height="@dimen/find_in_page_popup_height" 39 android:layout_height="@dimen/find_in_page_popup_height"
41 android:layout_marginEnd="@dimen/find_in_page_popup_margin_end" 40 android:layout_marginEnd="@dimen/find_in_page_popup_margin_end"
42 android:layout_gravity="end|top" 41 android:layout_gravity="end|top"
43 android:layout="@layout/find_toolbar" /> 42 android:layout="@layout/find_toolbar" />
44 </view> 43 </view>
45 </org.chromium.chrome.browser.toolbar.ToolbarControlContainer> 44 </org.chromium.chrome.browser.toolbar.ToolbarControlContainer>
OLDNEW
« no previous file with comments | « chrome/android/java/res/layout/control_container.xml ('k') | chrome/android/java/res/layout/custom_tabs_toolbar.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698