| 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.chromoting.accountswitcher; | 5 package org.chromium.chromoting.accountswitcher; |
| 6 | 6 |
| 7 import android.accounts.Account; | 7 import android.accounts.Account; |
| 8 import android.accounts.AccountManager; | 8 import android.accounts.AccountManager; |
| 9 import android.content.Context; | 9 import android.content.Context; |
| 10 import android.content.Intent; |
| 10 import android.view.View; | 11 import android.view.View; |
| 11 import android.widget.AdapterView; | 12 import android.widget.AdapterView; |
| 12 import android.widget.LinearLayout; | 13 import android.widget.LinearLayout; |
| 13 import android.widget.Spinner; | 14 import android.widget.Spinner; |
| 14 | 15 |
| 15 import org.chromium.chromoting.AccountsAdapter; | 16 import org.chromium.chromoting.AccountsAdapter; |
| 16 | 17 |
| 17 /** | 18 /** |
| 18 * This class implements a basic UI for a user account switcher. | 19 * This class implements a basic UI for a user account switcher. |
| 19 */ | 20 */ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 mCallback.onAccountSelected(mSelectedAccount); | 106 mCallback.onAccountSelected(mSelectedAccount); |
| 106 } | 107 } |
| 107 | 108 |
| 108 @Override | 109 @Override |
| 109 public void onNothingSelected(AdapterView<?> parent) { | 110 public void onNothingSelected(AdapterView<?> parent) { |
| 110 } | 111 } |
| 111 }); | 112 }); |
| 112 | 113 |
| 113 mCallback.onAccountSelected(mSelectedAccount); | 114 mCallback.onAccountSelected(mSelectedAccount); |
| 114 } | 115 } |
| 116 |
| 117 @Override |
| 118 public void onActivityResult(int requestCode, int resultCode, Intent data) { |
| 119 } |
| 120 |
| 121 @Override |
| 122 public void destroy() { |
| 123 } |
| 115 } | 124 } |
| OLD | NEW |