Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/snackbar/Snackbar.java

Issue 2367403005: Snackbar for promoting Data Saver to existing users (Closed)
Patch Set: add space, clear on data saving clear Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public static final int UMA_AUTO_LOGIN = 4; 43 public static final int UMA_AUTO_LOGIN = 4;
44 public static final int UMA_OMNIBOX_GEOLOCATION = 5; 44 public static final int UMA_OMNIBOX_GEOLOCATION = 5;
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_DATA_REDUCTION_PROMO = 14;
53 54
54 private SnackbarController mController; 55 private SnackbarController mController;
55 private CharSequence mText; 56 private CharSequence mText;
56 private String mTemplateText; 57 private String mTemplateText;
57 private String mActionText; 58 private String mActionText;
58 private Object mActionData; 59 private Object mActionData;
59 private int mBackgroundColor; 60 private int mBackgroundColor;
60 private boolean mSingleLine = true; 61 private boolean mSingleLine = true;
61 private int mDurationMs; 62 private int mDurationMs;
62 private Bitmap mProfileImage; 63 private Bitmap mProfileImage;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 return mProfileImage; 189 return mProfileImage;
189 } 190 }
190 191
191 /** 192 /**
192 * @return Whether the snackbar is of {@link #TYPE_ACTION}. 193 * @return Whether the snackbar is of {@link #TYPE_ACTION}.
193 */ 194 */
194 boolean isTypeAction() { 195 boolean isTypeAction() {
195 return mType == TYPE_ACTION; 196 return mType == TYPE_ACTION;
196 } 197 }
197 } 198 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698