| 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.snackbar; | 5 package org.chromium.chrome.browser.snackbar; |
| 6 | 6 |
| 7 import android.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
| 8 | 8 |
| 9 import org.chromium.chrome.browser.snackbar.SnackbarManager.SnackbarController; | 9 import org.chromium.chrome.browser.snackbar.SnackbarManager.SnackbarController; |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public static final int UMA_DATA_USE_STARTED = 7; | 46 public static final int UMA_DATA_USE_STARTED = 7; |
| 47 public static final int UMA_DATA_USE_ENDED = 8; | 47 public static final int UMA_DATA_USE_ENDED = 8; |
| 48 public static final int UMA_DOWNLOAD_SUCCEEDED = 9; | 48 public static final int UMA_DOWNLOAD_SUCCEEDED = 9; |
| 49 public static final int UMA_DOWNLOAD_FAILED = 10; | 49 public static final int UMA_DOWNLOAD_FAILED = 10; |
| 50 public static final int UMA_TAB_CLOSE_UNDO = 11; | 50 public static final int UMA_TAB_CLOSE_UNDO = 11; |
| 51 public static final int UMA_TAB_CLOSE_ALL_UNDO = 12; | 51 public static final int UMA_TAB_CLOSE_ALL_UNDO = 12; |
| 52 public static final int UMA_DOWNLOAD_DELETE_UNDO = 13; | 52 public static final int UMA_DOWNLOAD_DELETE_UNDO = 13; |
| 53 public static final int UMA_SPECIAL_LOCALE = 14; | 53 public static final int UMA_SPECIAL_LOCALE = 14; |
| 54 // Obsolete; don't use: UMA_BLIMP = 15; | 54 // Obsolete; don't use: UMA_BLIMP = 15; |
| 55 public static final int UMA_DATA_REDUCTION_PROMO = 16; | 55 public static final int UMA_DATA_REDUCTION_PROMO = 16; |
| 56 public static final int UMA_HISTORY_LINK_COPIED = 17; |
| 56 | 57 |
| 57 private SnackbarController mController; | 58 private SnackbarController mController; |
| 58 private CharSequence mText; | 59 private CharSequence mText; |
| 59 private String mTemplateText; | 60 private String mTemplateText; |
| 60 private String mActionText; | 61 private String mActionText; |
| 61 private Object mActionData; | 62 private Object mActionData; |
| 62 private int mBackgroundColor; | 63 private int mBackgroundColor; |
| 63 private boolean mSingleLine = true; | 64 private boolean mSingleLine = true; |
| 64 private int mDurationMs; | 65 private int mDurationMs; |
| 65 private Bitmap mProfileImage; | 66 private Bitmap mProfileImage; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 return mProfileImage; | 192 return mProfileImage; |
| 192 } | 193 } |
| 193 | 194 |
| 194 /** | 195 /** |
| 195 * @return Whether the snackbar is of {@link #TYPE_ACTION}. | 196 * @return Whether the snackbar is of {@link #TYPE_ACTION}. |
| 196 */ | 197 */ |
| 197 boolean isTypeAction() { | 198 boolean isTypeAction() { |
| 198 return mType == TYPE_ACTION; | 199 return mType == TYPE_ACTION; |
| 199 } | 200 } |
| 200 } | 201 } |
| OLD | NEW |