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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 2745623003: Revert of Fix TODOs related to SDK 24 (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
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++) {

Powered by Google App Engine
This is Rietveld 408576698