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

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

Issue 2809923003: [Home] Add a Chrome Home specific incognito NTP (Closed)
Patch Set: [Home] Add a Chrome Home specific incognito NTP Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2017 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 5
6 <FrameLayout 6 <FrameLayout
7 xmlns:android="http://schemas.android.com/apk/res/android" 7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:chrome="http://schemas.android.com/apk/res-auto" 8 xmlns:chrome="http://schemas.android.com/apk/res-auto"
9 android:layout_width="match_parent" 9 android:layout_width="match_parent"
10 android:layout_height="match_parent" 10 android:layout_height="match_parent"
11 android:focusable="true" 11 android:focusable="true"
12 android:focusableInTouchMode="true" 12 android:focusableInTouchMode="true"
13 android:background="@android:color/white" > 13 android:background="@android:color/white" >
14 14
15 <org.chromium.chrome.browser.widget.TintedImageButton 15 <org.chromium.chrome.browser.widget.TintedImageButton
16 android:id="@+id/close_button" 16 android:id="@+id/close_button"
17 android:layout_width="40dp" 17 android:layout_width="40dp"
18 android:layout_height="40dp" 18 android:layout_height="40dp"
19 android:layout_gravity="top|start" 19 android:layout_gravity="top|end"
20 android:src="@drawable/btn_close" 20 android:src="@drawable/btn_close"
21 android:scaleType="center" 21 android:scaleType="center"
22 android:background="@android:color/transparent" 22 android:background="@android:color/transparent"
23 chrome:tint="@color/dark_mode_tint" /> 23 chrome:tint="@color/dark_mode_tint" />
24 24
25 <LinearLayout 25 <LinearLayout
26 android:layout_width="match_parent" 26 android:layout_width="match_parent"
27 android:layout_height="match_parent" 27 android:layout_height="match_parent"
28 android:orientation="vertical" > 28 android:orientation="vertical"
29 android:clipChildren="false" >
29 30
30 <FrameLayout 31 <FrameLayout
31 android:layout_width="match_parent" 32 android:layout_width="match_parent"
32 android:layout_height="0dp" 33 android:layout_height="0dp"
33 android:layout_weight="0.5" > 34 android:layout_weight="0.5" >
34 35
35 <org.chromium.chrome.browser.ntp.LogoView 36 <org.chromium.chrome.browser.ntp.LogoView
36 android:id="@+id/search_provider_logo" 37 android:id="@+id/search_provider_logo"
37 android:layout_width="match_parent" 38 android:layout_width="match_parent"
38 android:layout_height="@dimen/ntp_logo_height" 39 android:layout_height="@dimen/ntp_logo_height"
39 android:layout_marginStart="16dp" 40 android:layout_marginStart="16dp"
40 android:layout_marginEnd="16dp" 41 android:layout_marginEnd="16dp"
41 android:layout_gravity="center" /> 42 android:layout_gravity="center" />
42 43
43 </FrameLayout> 44 </FrameLayout>
44 45
45 <!-- This extra empty frame layout is used to ensure the FrameLayout abo ve 46 <!-- This extra empty frame layout is used to ensure the FrameLayout
46 is half of the parent view's height. --> 47 above is half of the parent view's height. -->
47 <FrameLayout 48 <FrameLayout
48 android:layout_width="match_parent" 49 android:layout_width="match_parent"
49 android:layout_height="0dp" 50 android:layout_height="0dp"
50 android:layout_weight="0.5" 51 android:layout_weight="0.5"
51 android:background="@android:color/white" /> 52 android:background="@android:color/transparent" />
52 53
53 </LinearLayout> 54 </LinearLayout>
54 55
55 </FrameLayout> 56 </FrameLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698