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

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

Issue 2067323004: Allow copying and viewing account credentials in PasswordEntryEditor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 4 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 5
6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
7 android:layout_width="match_parent" 7 android:layout_width="match_parent"
8 android:layout_height="match_parent" 8 android:layout_height="match_parent"
9 android:fillViewport="true" > 9 android:fillViewport="true" >
10 10
(...skipping 27 matching lines...) Expand all
38 android:layout_marginTop="10dp" 38 android:layout_marginTop="10dp"
39 android:layout_marginStart="15dp" 39 android:layout_marginStart="15dp"
40 android:textAppearance="?android:attr/textAppearanceMedium" /> 40 android:textAppearance="?android:attr/textAppearanceMedium" />
41 41
42 <View 42 <View
43 android:layout_width="0dp" 43 android:layout_width="0dp"
44 android:layout_height="0dp" 44 android:layout_height="0dp"
45 android:layout_weight="1" /> 45 android:layout_weight="1" />
46 46
47 <ImageButton 47 <ImageButton
48 android:id="@+id/password_entry_editor_copy_site"
48 style="?android:attr/buttonStyleSmall" 49 style="?android:attr/buttonStyleSmall"
50 android:background="@null"
49 android:layout_width="match_parent" 51 android:layout_width="match_parent"
50 android:layout_height="wrap_content" 52 android:layout_height="wrap_content"
51 android:layout_gravity="end" 53 android:layout_gravity="end"
52 android:layout_marginTop="10dp" 54 android:layout_marginTop="10dp"
53 android:layout_marginEnd="15dp" 55 android:layout_marginEnd="15dp"
54 android:src="@drawable/ic_content_copy" 56 android:src="@drawable/ic_content_copy"
55 android:contentDescription="@string/password_entry_editor_copy_s tored_site" /> 57 android:contentDescription="@string/password_entry_editor_copy_s tored_site" />
56 58
57 </LinearLayout> 59 </LinearLayout>
58 60
(...skipping 21 matching lines...) Expand all
80 android:layout_marginStart="15dp" 82 android:layout_marginStart="15dp"
81 android:textAppearance="?android:attr/textAppearanceMedium" 83 android:textAppearance="?android:attr/textAppearanceMedium"
82 android:contentDescription="@string/password_entry_editor_copy_s tored_username" /> 84 android:contentDescription="@string/password_entry_editor_copy_s tored_username" />
83 85
84 <View 86 <View
85 android:layout_width="0dp" 87 android:layout_width="0dp"
86 android:layout_height="0dp" 88 android:layout_height="0dp"
87 android:layout_weight="1" /> 89 android:layout_weight="1" />
88 90
89 <ImageButton 91 <ImageButton
92 android:id="@+id/password_entry_editor_copy_username"
90 style="?android:attr/buttonStyleSmall" 93 style="?android:attr/buttonStyleSmall"
94 android:background="@null"
91 android:layout_width="match_parent" 95 android:layout_width="match_parent"
92 android:layout_height="wrap_content" 96 android:layout_height="wrap_content"
93 android:layout_gravity="end" 97 android:layout_gravity="end"
94 android:layout_marginTop="10dp" 98 android:layout_marginTop="10dp"
95 android:layout_marginEnd="15dp" 99 android:layout_marginEnd="15dp"
96 android:src="@drawable/ic_content_copy" /> 100 android:src="@drawable/ic_content_copy" />
97 101
98 </LinearLayout> 102 </LinearLayout>
99 103
100 <TextView 104 <TextView
(...skipping 11 matching lines...) Expand all
112 android:layout_height="wrap_content" 116 android:layout_height="wrap_content"
113 android:orientation="horizontal"> 117 android:orientation="horizontal">
114 118
115 <TextView 119 <TextView
116 android:id="@+id/password_entry_editor_password" 120 android:id="@+id/password_entry_editor_password"
117 android:textColor="@color/default_text_color" 121 android:textColor="@color/default_text_color"
118 android:layout_width="fill_parent" 122 android:layout_width="fill_parent"
119 android:layout_height="wrap_content" 123 android:layout_height="wrap_content"
120 android:layout_marginTop="10dp" 124 android:layout_marginTop="10dp"
121 android:layout_marginStart="15dp" 125 android:layout_marginStart="15dp"
126 android:inputType="textPassword"
122 android:textAppearance="?android:attr/textAppearanceMedium" /> 127 android:textAppearance="?android:attr/textAppearanceMedium" />
123 128
124 <View 129 <View
125 android:layout_width="0dp" 130 android:layout_width="0dp"
126 android:layout_height="0dp" 131 android:layout_height="0dp"
127 android:layout_weight="1" /> 132 android:layout_weight="1" />
128 133
129 <ImageButton 134 <ImageButton
135 android:id="@+id/password_entry_editor_view_password"
136 android:background="@null"
130 style="?android:attr/buttonStyleSmall" 137 style="?android:attr/buttonStyleSmall"
131 android:layout_width="match_parent" 138 android:layout_width="match_parent"
132 android:layout_height="wrap_content" 139 android:layout_height="wrap_content"
133 android:layout_gravity="end" 140 android:layout_gravity="end"
134 android:layout_marginTop="10dp" 141 android:layout_marginTop="10dp"
135 android:layout_marginEnd="15dp" 142 android:layout_marginEnd="15dp"
136 android:src="@drawable/ic_visibility" 143 android:src="@drawable/ic_visibility"
137 android:contentDescription="@string/password_entry_editor_view_s tored_password" /> 144 android:contentDescription="@string/password_entry_editor_view_s tored_password" />
138 145
139 <ImageButton 146 <ImageButton
147 android:id="@+id/password_entry_editor_copy_password"
148 android:background="@null"
140 style="?android:attr/buttonStyleSmall" 149 style="?android:attr/buttonStyleSmall"
141 android:layout_width="match_parent" 150 android:layout_width="match_parent"
142 android:layout_height="wrap_content" 151 android:layout_height="wrap_content"
143 android:layout_gravity="end" 152 android:layout_gravity="end"
144 android:layout_marginTop="10dp" 153 android:layout_marginTop="10dp"
145 android:layout_marginEnd="15dp" 154 android:layout_marginEnd="15dp"
146 android:src="@drawable/ic_content_copy" 155 android:src="@drawable/ic_content_copy"
147 android:contentDescription="@string/password_entry_editor_copy_s tored_password" /> 156 android:contentDescription="@string/password_entry_editor_copy_s tored_password" />
148 157
149 </LinearLayout> 158 </LinearLayout>
150 159
151 </LinearLayout> 160 </LinearLayout>
152 161
153 </ScrollView> 162 </ScrollView>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698