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

Side by Side Diff: ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/Clipboard.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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.ui.base; 5 package org.chromium.ui.base;
6 6
7 import android.Manifest; 7 import android.Manifest;
8 import android.annotation.SuppressLint;
8 import android.annotation.TargetApi; 9 import android.annotation.TargetApi;
9 import android.app.Activity; 10 import android.app.Activity;
10 import android.content.ClipData; 11 import android.content.ClipData;
11 import android.content.ContentResolver; 12 import android.content.ContentResolver;
12 import android.content.Context; 13 import android.content.Context;
13 import android.content.Intent; 14 import android.content.Intent;
14 import android.content.pm.PackageManager; 15 import android.content.pm.PackageManager;
15 import android.net.Uri; 16 import android.net.Uri;
16 import android.os.AsyncTask; 17 import android.os.AsyncTask;
17 import android.os.Build; 18 import android.os.Build;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 static final int SELECT_FILE_DIALOG_SCOPE_GENERIC = 0; 78 static final int SELECT_FILE_DIALOG_SCOPE_GENERIC = 0;
78 static final int SELECT_FILE_DIALOG_SCOPE_IMAGES = 1; 79 static final int SELECT_FILE_DIALOG_SCOPE_IMAGES = 1;
79 static final int SELECT_FILE_DIALOG_SCOPE_VIDEOS = 2; 80 static final int SELECT_FILE_DIALOG_SCOPE_VIDEOS = 2;
80 static final int SELECT_FILE_DIALOG_SCOPE_IMAGES_AND_VIDEOS = 3; 81 static final int SELECT_FILE_DIALOG_SCOPE_IMAGES_AND_VIDEOS = 3;
81 static final int SELECT_FILE_DIALOG_SCOPE_COUNT = 82 static final int SELECT_FILE_DIALOG_SCOPE_COUNT =
82 SELECT_FILE_DIALOG_SCOPE_IMAGES_AND_VIDEOS + 1; 83 SELECT_FILE_DIALOG_SCOPE_IMAGES_AND_VIDEOS + 1;
83 84
84 /** 85 /**
85 * If set, overrides the WindowAndroid passed in {@link selectFile()}. 86 * If set, overrides the WindowAndroid passed in {@link selectFile()}.
86 */ 87 */
88 @SuppressLint("StaticFieldLeak")
87 private static WindowAndroid sOverrideWindowAndroid; 89 private static WindowAndroid sOverrideWindowAndroid;
88 90
89 private final long mNativeSelectFileDialog; 91 private final long mNativeSelectFileDialog;
90 private List<String> mFileTypes; 92 private List<String> mFileTypes;
91 private boolean mCapture; 93 private boolean mCapture;
92 private boolean mAllowMultiple; 94 private boolean mAllowMultiple;
93 private Uri mCameraOutputUri; 95 private Uri mCameraOutputUri;
94 private WindowAndroid mWindowAndroid; 96 private WindowAndroid mWindowAndroid;
95 97
96 private boolean mSupportsImageCapture; 98 private boolean mSupportsImageCapture;
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 static SelectFileDialog create(long nativeSelectFileDialog) { 580 static SelectFileDialog create(long nativeSelectFileDialog) {
579 return new SelectFileDialog(nativeSelectFileDialog); 581 return new SelectFileDialog(nativeSelectFileDialog);
580 } 582 }
581 583
582 private native void nativeOnFileSelected(long nativeSelectFileDialogImpl, 584 private native void nativeOnFileSelected(long nativeSelectFileDialogImpl,
583 String filePath, String displayName); 585 String filePath, String displayName);
584 private native void nativeOnMultipleFilesSelected(long nativeSelectFileDialo gImpl, 586 private native void nativeOnMultipleFilesSelected(long nativeSelectFileDialo gImpl,
585 String[] filePathArray, String[] displayNameArray); 587 String[] filePathArray, String[] displayNameArray);
586 private native void nativeOnFileNotSelected(long nativeSelectFileDialogImpl) ; 588 private native void nativeOnFileNotSelected(long nativeSelectFileDialogImpl) ;
587 } 589 }
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/Clipboard.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698