OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.chrome.browser.firstrun; | 5 package org.chromium.chrome.browser.firstrun; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.graphics.Bitmap; | 8 import android.graphics.Bitmap; |
9 import android.graphics.Color; | 9 import android.graphics.Color; |
10 import android.text.TextUtils; | 10 import android.text.TextUtils; |
11 import android.util.AttributeSet; | 11 import android.util.AttributeSet; |
12 import android.view.Gravity; | 12 import android.view.Gravity; |
13 import android.view.View; | 13 import android.view.View; |
14 import android.widget.AdapterView; | 14 import android.widget.AdapterView; |
15 import android.widget.ArrayAdapter; | 15 import android.widget.ArrayAdapter; |
16 import android.widget.Button; | 16 import android.widget.Button; |
17 import android.widget.FrameLayout; | 17 import android.widget.FrameLayout; |
18 import android.widget.ImageView; | 18 import android.widget.ImageView; |
19 import android.widget.LinearLayout; | 19 import android.widget.LinearLayout; |
20 import android.widget.Spinner; | 20 import android.widget.Spinner; |
21 import android.widget.TextView; | 21 import android.widget.TextView; |
22 | 22 |
23 import org.chromium.base.ApiCompatibilityUtils; | 23 import org.chromium.base.ApiCompatibilityUtils; |
24 import org.chromium.chrome.R; | 24 import org.chromium.chrome.R; |
25 import org.chromium.chrome.browser.firstrun.ImageCarousel.ImageCarouselPositionC
hangeListener; | 25 import org.chromium.chrome.browser.firstrun.ImageCarousel.ImageCarouselPositionC
hangeListener; |
26 import org.chromium.chrome.browser.profiles.ProfileDownloader; | 26 import org.chromium.chrome.browser.profiles.ProfileDownloader; |
27 import org.chromium.chrome.browser.signin.SigninManager; | 27 import org.chromium.chrome.browser.signin.SigninManager; |
28 import org.chromium.chrome.browser.widget.ButtonCompat; | |
29 import org.chromium.sync.signin.AccountManagerHelper; | 28 import org.chromium.sync.signin.AccountManagerHelper; |
| 29 import org.chromium.ui.widget.ButtonCompat; |
30 | 30 |
31 import java.util.List; | 31 import java.util.List; |
32 | 32 |
33 /** | 33 /** |
34 * This view allows the user to select an account to log in to, add an account, | 34 * This view allows the user to select an account to log in to, add an account, |
35 * cancel account selection, etc. Users of this class should | 35 * cancel account selection, etc. Users of this class should |
36 * {@link AccountFirstRunView#setListener(Listener)} after the view has been | 36 * {@link AccountFirstRunView#setListener(Listener)} after the view has been |
37 * inflated. | 37 * inflated. |
38 */ | 38 */ |
39 public class AccountFirstRunView extends FrameLayout | 39 public class AccountFirstRunView extends FrameLayout |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 public boolean isInForcedAccountMode() { | 499 public boolean isInForcedAccountMode() { |
500 return mForcedAccountName != null; | 500 return mForcedAccountName != null; |
501 } | 501 } |
502 | 502 |
503 @Override | 503 @Override |
504 public void onPositionChanged(int i) { | 504 public void onPositionChanged(int i) { |
505 mPositionSetProgrammatically = true; | 505 mPositionSetProgrammatically = true; |
506 mSpinner.setSelection(i); | 506 mSpinner.setSelection(i); |
507 } | 507 } |
508 } | 508 } |
OLD | NEW |