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

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

Issue 2673003003: Rename MostVisited ui bits to Tile(Grid). (Closed)
Patch Set: Rebase. Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2016 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.ntp.NewTabPageLayout 5 <org.chromium.chrome.browser.ntp.NewTabPageLayout
6 xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:chrome="http://schemas.android.com/apk/res-auto" 7 xmlns:chrome="http://schemas.android.com/apk/res-auto"
8 android:id="@+id/ntp_content" 8 android:id="@+id/ntp_content"
9 android:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="match_parent" 10 android:layout_height="match_parent"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 </LinearLayout> 95 </LinearLayout>
96 96
97 <!-- Middle spacer --> 97 <!-- Middle spacer -->
98 <View 98 <View
99 android:id="@+id/ntp_middle_spacer" 99 android:id="@+id/ntp_middle_spacer"
100 android:layout_width="0dp" 100 android:layout_width="0dp"
101 android:layout_height="0dp" 101 android:layout_height="0dp"
102 android:layout_weight="0" 102 android:layout_weight="0"
103 android:visibility="invisible" /> 103 android:visibility="invisible" />
104 104
105 <!-- Most visited items --> 105 <!-- Site suggestion tiles -->
106 <org.chromium.chrome.browser.ntp.MostVisitedLayout 106 <org.chromium.chrome.browser.suggestions.TileGridLayout
107 android:id="@+id/most_visited_layout" 107 android:id="@+id/tile_grid_layout"
108 android:layout_width="wrap_content" 108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content" 109 android:layout_height="wrap_content"
110 android:layout_marginBottom="16dp" 110 android:layout_marginBottom="16dp"
111 android:layout_marginStart="12dp" 111 android:layout_marginStart="12dp"
112 android:layout_marginEnd="12dp" 112 android:layout_marginEnd="12dp"
113 android:layout_gravity="center_horizontal" 113 android:layout_gravity="center_horizontal"
114 android:paddingTop="@dimen/most_visited_layout_padding_top" 114 android:paddingTop="@dimen/tile_grid_layout_padding_top"
115 android:paddingBottom="4dp" /> 115 android:paddingBottom="4dp" />
116 116
117 <!-- Most visited items placeholder --> 117 <!-- Site suggestions tile grid placeholder -->
118 <ViewStub 118 <ViewStub
119 android:id="@+id/most_visited_placeholder_stub" 119 android:id="@+id/tile_grid_placeholder_stub"
120 android:layout_width="match_parent" 120 android:layout_width="match_parent"
121 android:layout_height="wrap_content" 121 android:layout_height="wrap_content"
122 android:layout_weight="1" 122 android:layout_weight="1"
123 android:inflatedId="@+id/most_visited_placeholder" 123 android:inflatedId="@+id/tile_grid_placeholder"
124 android:layout="@layout/most_visited_placeholder" /> 124 android:layout="@layout/new_tab_page_tile_grid_placeholder" />
125 125
126 <!-- Bottom spacer --> 126 <!-- Bottom spacer -->
127 <View 127 <View
128 android:id="@+id/ntp_bottom_spacer" 128 android:id="@+id/ntp_bottom_spacer"
129 android:layout_width="0dp" 129 android:layout_width="0dp"
130 android:layout_height="0dp" 130 android:layout_height="0dp"
131 android:layout_weight="0" 131 android:layout_weight="0"
132 android:visibility="invisible" /> 132 android:visibility="invisible" />
133 133
134 <!-- Spacer for when there is no search provider logo. --> 134 <!-- Spacer for when there is no search provider logo. -->
135 <View 135 <View
136 android:id="@+id/no_search_logo_spacer" 136 android:id="@+id/no_search_logo_spacer"
137 android:layout_width="match_parent" 137 android:layout_width="match_parent"
138 android:layout_height="0dp" 138 android:layout_height="0dp"
139 android:layout_weight="1" 139 android:layout_weight="1"
140 android:visibility="gone" /> 140 android:visibility="gone" />
141 </org.chromium.chrome.browser.ntp.NewTabPageLayout> 141 </org.chromium.chrome.browser.ntp.NewTabPageLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698