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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 public static final int UMA_LOFI = 6; | 45 public static final int UMA_LOFI = 6; |
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 public static final int UMA_BLIMP = 15; | 54 public static final int UMA_BLIMP = 15; |
| 55 public static final int UMA_DATA_REDUCTION_PROMO = 16; |
55 | 56 |
56 private SnackbarController mController; | 57 private SnackbarController mController; |
57 private CharSequence mText; | 58 private CharSequence mText; |
58 private String mTemplateText; | 59 private String mTemplateText; |
59 private String mActionText; | 60 private String mActionText; |
60 private Object mActionData; | 61 private Object mActionData; |
61 private int mBackgroundColor; | 62 private int mBackgroundColor; |
62 private boolean mSingleLine = true; | 63 private boolean mSingleLine = true; |
63 private int mDurationMs; | 64 private int mDurationMs; |
64 private Bitmap mProfileImage; | 65 private Bitmap mProfileImage; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return mProfileImage; | 191 return mProfileImage; |
191 } | 192 } |
192 | 193 |
193 /** | 194 /** |
194 * @return Whether the snackbar is of {@link #TYPE_ACTION}. | 195 * @return Whether the snackbar is of {@link #TYPE_ACTION}. |
195 */ | 196 */ |
196 boolean isTypeAction() { | 197 boolean isTypeAction() { |
197 return mType == TYPE_ACTION; | 198 return mType == TYPE_ACTION; |
198 } | 199 } |
199 } | 200 } |
OLD | NEW |