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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java

Issue 580043002: [Android] Prompt with infobar on filename conflict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed function order according to headers Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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.infobar; 5 package org.chromium.chrome.browser.infobar;
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.view.View; 9 import android.view.View;
10 10
(...skipping 18 matching lines...) Expand all
29 public static final int ACTION_TYPE_NONE = 0; 29 public static final int ACTION_TYPE_NONE = 0;
30 30
31 // Confirm infobar 31 // Confirm infobar
32 public static final int ACTION_TYPE_OK = 1; 32 public static final int ACTION_TYPE_OK = 1;
33 public static final int ACTION_TYPE_CANCEL = 2; 33 public static final int ACTION_TYPE_CANCEL = 2;
34 34
35 // Translate infobar 35 // Translate infobar
36 public static final int ACTION_TYPE_TRANSLATE = 3; 36 public static final int ACTION_TYPE_TRANSLATE = 3;
37 public static final int ACTION_TYPE_TRANSLATE_SHOW_ORIGINAL = 4; 37 public static final int ACTION_TYPE_TRANSLATE_SHOW_ORIGINAL = 4;
38 38
39 // Download Overwrite InfoBar
40 public static final int ACTION_TYPE_OVERWRITE = 5;
41 public static final int ACTION_TYPE_CREATE_NEW_FILE = 6;
42
39 private final int mIconDrawableId; 43 private final int mIconDrawableId;
40 private final Bitmap mIconBitmap; 44 private final Bitmap mIconBitmap;
41 private final CharSequence mMessage; 45 private final CharSequence mMessage;
42 46
43 private InfoBarListeners.Dismiss mListener; 47 private InfoBarListeners.Dismiss mListener;
44 private ContentWrapperView mContentView; 48 private ContentWrapperView mContentView;
45 private InfoBarContainer mContainer; 49 private InfoBarContainer mContainer;
46 private Context mContext; 50 private Context mContext;
47 51
48 private boolean mExpireOnNavigation; 52 private boolean mExpireOnNavigation;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 @VisibleForTesting 261 @VisibleForTesting
258 public void setDismissedListener(InfoBarListeners.Dismiss listener) { 262 public void setDismissedListener(InfoBarListeners.Dismiss listener) {
259 mListener = listener; 263 mListener = listener;
260 } 264 }
261 265
262 protected native void nativeOnLinkClicked(long nativeInfoBarAndroid); 266 protected native void nativeOnLinkClicked(long nativeInfoBarAndroid);
263 protected native void nativeOnButtonClicked( 267 protected native void nativeOnButtonClicked(
264 long nativeInfoBarAndroid, int action, String actionValue); 268 long nativeInfoBarAndroid, int action, String actionValue);
265 protected native void nativeOnCloseButtonClicked(long nativeInfoBarAndroid); 269 protected native void nativeOnCloseButtonClicked(long nativeInfoBarAndroid);
266 } 270 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698