OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.ui.autofill; | 5 package org.chromium.ui.autofill; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.graphics.Paint; | 8 import android.graphics.Paint; |
9 import android.graphics.Rect; | 9 import android.graphics.Rect; |
10 import android.text.TextUtils; | 10 import android.text.TextUtils; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 // Adding padding. | 205 // Adding padding. |
206 return maxTextWidth + TEXT_PADDING_DP; | 206 return maxTextWidth + TEXT_PADDING_DP; |
207 } | 207 } |
208 | 208 |
209 @Override | 209 @Override |
210 public void onItemClick(AdapterView<?> parent, View view, int position, long
id) { | 210 public void onItemClick(AdapterView<?> parent, View view, int position, long
id) { |
211 mAutofillCallback.suggestionSelected(position); | 211 mAutofillCallback.suggestionSelected(position); |
212 } | 212 } |
213 | 213 |
214 } | 214 } |
OLD | NEW |