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

Issue 2014553002: Implement WebContents.downloadImage() on Java side (Closed)

Created:
4 years, 7 months ago by Zhiqiang Zhang (Slow)
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement WebContents.downloadImage() on Java side This CL bridges the native WebContents::DownloadImage to Java. We are planning to use the method for fetching artwork images (WIP) in MediaMetadata and show them in Android media notification. Related CLs: https://codereview.chromium.org/2013813002/ https://codereview.chromium.org/2015433003/ https://codereview.chromium.org/2009243002/ (most relevant one) BUG=616411 Committed: https://crrev.com/7aeb422ef7c9f6a387d9f2bcfc0d8cc5c8331b84 Cr-Commit-Position: refs/heads/master@{#397807}

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed Mounir's comments #

Patch Set 3 : rebasing #

Total comments: 14

Patch Set 4 : addressed Ted's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -0 lines) Patch
M content/browser/web_contents/web_contents_android.h View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 2 3 2 chunks +50 lines, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsImpl.java View 1 2 3 3 chunks +39 lines, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content_public/browser/ImageDownloadCallback.java View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContents.java View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
Zhiqiang Zhang (Slow)
4 years, 6 months ago (2016-05-31 14:49:41 UTC) #2
mlamouri (slow - plz ping)
sgtm apart from the JNI calls. Also, could you point to the other CLs from ...
4 years, 6 months ago (2016-05-31 16:18:37 UTC) #3
Zhiqiang Zhang (Slow)
PTAL, addressed Mounir's comments. +tedchoc to look at all the changes. https://codereview.chromium.org/2014553002/diff/1/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): ...
4 years, 6 months ago (2016-06-01 11:05:55 UTC) #6
mlamouri (slow - plz ping)
I'm still concerned that we are making too many JNI calls (two loops + 3 ...
4 years, 6 months ago (2016-06-02 15:55:00 UTC) #7
Ted C
lgtm basically nits about style and requests for additional comments...the jni is unavoidable so it ...
4 years, 6 months ago (2016-06-03 16:44:10 UTC) #8
Zhiqiang Zhang (Slow)
https://codereview.chromium.org/2014553002/diff/40001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/2014553002/diff/40001/content/browser/web_contents/web_contents_android.cc#newcode728 content/browser/web_contents/web_contents_android.cc:728: ScopedJavaLocalRef<jobject> jbitmap = gfx::ConvertToJavaBitmap(&bitmap); On 2016/06/03 16:44:09, Ted C ...
4 years, 6 months ago (2016-06-03 18:53:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2014553002/100001
4 years, 6 months ago (2016-06-03 18:54:21 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 6 months ago (2016-06-03 21:27:54 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 21:30:15 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7aeb422ef7c9f6a387d9f2bcfc0d8cc5c8331b84
Cr-Commit-Position: refs/heads/master@{#397807}

Powered by Google App Engine
This is Rietveld 408576698