| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index 4b01c7eef493965d8cdb94da4dc510519c4d4cfb..1bef1209ac767f7ac0a4eaa44cb90335cd4fa37f 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -2538,7 +2538,8 @@
|
| /**
|
| * @see View#onDragEvent(DragEvent)
|
| */
|
| - @TargetApi(Build.VERSION_CODES.N)
|
| + // TODO(hush): uncomment below when we build with API 24.
|
| + // @TargetApi(Build.VERSION_CODES.N)
|
| public boolean onDragEvent(DragEvent event) {
|
| if (mNativeContentViewCore == 0 || Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
| return false;
|
| @@ -2558,8 +2559,9 @@
|
|
|
| StringBuilder content = new StringBuilder("");
|
| if (event.getAction() == DragEvent.ACTION_DROP) {
|
| - // TODO(hush): obtain dragdrop permissions, when dragging files into Chrome/WebView is
|
| - // supported. Not necessary to do so for now, because only text dragging is supported.
|
| + // TODO(hush): obtain dragdrop permissions (via reflection?), when dragging files into
|
| + // Chrome/WebView is supported. Not necessary to do so for now, because only text
|
| + // dragging is supported.
|
| ClipData clipData = event.getClipData();
|
| final int itemCount = clipData.getItemCount();
|
| for (int i = 0; i < itemCount; i++) {
|
|
|