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

Issue 2945213002: [ios] Snapshot for WebState (Closed)

Created:
3 years, 6 months ago by edchin
Modified:
3 years, 6 months ago
CC:
chromium-reviews, ios-reviews_chromium.org, ios-reviews+web_chromium.org, baxley+watch_chromium.org, Eugene But (OOO till 7-30), huangml+watch_chromium.org, liaoyuke+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ios] Snapshot for WebState This CL adds a method to WebState that asynchronously takes a full-res snapshot of the rendered web page. This CL does not implement the new iOS 11 WKWebView snapshotting method, which will be implemented in a separate CL. BUG=none Review-Url: https://codereview.chromium.org/2945213002 Cr-Commit-Position: refs/heads/master@{#482140} Committed: https://chromium.googlesource.com/chromium/src/+/2c89a25cf7851a3830f884b8d368d3eceacfc018

Patch Set 1 #

Total comments: 37

Patch Set 2 : Address comments. #

Total comments: 4

Patch Set 3 : Address comments. #

Total comments: 2

Patch Set 4 : Address comments #

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -0 lines) Patch
M ios/web/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state.mm View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M ios/web/public/web_state/web_state.h View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_impl.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_impl.mm View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M ios/web/web_state/web_state_unittest.mm View 1 2 2 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (37 generated)
edchin
PTAL.
3 years, 6 months ago (2017-06-21 02:42:59 UTC) #4
marq (ping after 24h)
https://codereview.chromium.org/2945213002/diff/1/ios/web/public/web_state/web_state.h File ios/web/public/web_state/web_state.h (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/public/web_state/web_state.h#newcode255 ios/web/public/web_state/web_state.h:255: // Takes a full-resolution snapshot of this WebState. Document ...
3 years, 6 months ago (2017-06-21 11:13:24 UTC) #7
rohitrao (ping after 24h)
https://codereview.chromium.org/2945213002/diff/1/ios/web/web_state/web_state_impl.mm File ios/web/web_state/web_state_impl.mm (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/web_state/web_state_impl.mm#newcode675 ios/web/web_state/web_state_impl.mm:675: const base::Callback<void(const gfx::Image& snapshot)>& callback) const { On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 11:38:15 UTC) #9
edchin
https://codereview.chromium.org/2945213002/diff/1/ios/web/web_state/web_state_impl.mm File ios/web/web_state/web_state_impl.mm (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/web_state/web_state_impl.mm#newcode675 ios/web/web_state/web_state_impl.mm:675: const base::Callback<void(const gfx::Image& snapshot)>& callback) const { On 2017/06/21 ...
3 years, 6 months ago (2017-06-21 16:57:24 UTC) #10
kkhorimoto
https://codereview.chromium.org/2945213002/diff/1/ios/web/public/web_state/web_state.h File ios/web/public/web_state/web_state.h (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/public/web_state/web_state.h#newcode255 ios/web/public/web_state/web_state.h:255: // Takes a full-resolution snapshot of this WebState. You ...
3 years, 6 months ago (2017-06-21 20:06:52 UTC) #12
Eugene But (OOO till 7-30)
Generally looks good. Thanks for adding API to web layer. https://codereview.chromium.org/2945213002/diff/1/ios/web/public/test/fakes/test_web_state.mm File ios/web/public/test/fakes/test_web_state.mm (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/public/test/fakes/test_web_state.mm#newcode236 ...
3 years, 6 months ago (2017-06-21 22:11:30 UTC) #13
edchin
PTAL. Comments addressed. https://codereview.chromium.org/2945213002/diff/1/ios/web/public/test/fakes/test_web_state.mm File ios/web/public/test/fakes/test_web_state.mm (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/public/test/fakes/test_web_state.mm#newcode236 ios/web/public/test/fakes/test_web_state.mm:236: callback.Run(gfx::Image()); On 2017/06/21 22:11:28, Eugene But ...
3 years, 6 months ago (2017-06-22 07:01:08 UTC) #25
marq (ping after 24h)
LGTM https://codereview.chromium.org/2945213002/diff/1/ios/web/web_state/web_state_impl.mm File ios/web/web_state/web_state_impl.mm (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/web_state/web_state_impl.mm#newcode685 ios/web/web_state/web_state_impl.mm:685: callback.Run(gfx::Image(snapshot)); On 2017/06/21 16:57:24, edchin wrote: > On ...
3 years, 6 months ago (2017-06-22 11:55:31 UTC) #28
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2945213002/diff/1/ios/web/public/web_state/web_state.h File ios/web/public/web_state/web_state.h (right): https://codereview.chromium.org/2945213002/diff/1/ios/web/public/web_state/web_state.h#newcode256 ios/web/public/web_state/web_state.h:256: virtual void TakeSnapshot( On 2017/06/22 07:01:07, edchin wrote: > ...
3 years, 6 months ago (2017-06-22 19:34:14 UTC) #33
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2945213002/diff/80001/ios/web/web_state/web_state_unittest.mm File ios/web/web_state/web_state_unittest.mm (right): https://codereview.chromium.org/2945213002/diff/80001/ios/web/web_state/web_state_unittest.mm#newcode138 ios/web/web_state/web_state_unittest.mm:138: gfx::test::ToPlatformType(snapshot), 200, 200), Sorry, for not asking earlier. I ...
3 years, 6 months ago (2017-06-22 20:09:38 UTC) #34
edchin
PTAL. Will extract one line change in //ui/gfx/image into a separate CL, so this won't ...
3 years, 6 months ago (2017-06-23 19:03:11 UTC) #35
Eugene But (OOO till 7-30)
lgtm! Thanks https://codereview.chromium.org/2945213002/diff/100001/ios/web/public/test/fakes/test_web_state.h File ios/web/public/test/fakes/test_web_state.h (right): https://codereview.chromium.org/2945213002/diff/100001/ios/web/public/test/fakes/test_web_state.h#newcode80 ios/web/public/test/fakes/test_web_state.h:80: const CGSize target_size) const override; Optional nit: ...
3 years, 6 months ago (2017-06-23 20:36:17 UTC) #40
kkhorimoto
lgtm
3 years, 6 months ago (2017-06-23 21:45:01 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2945213002/140001
3 years, 6 months ago (2017-06-24 06:39:37 UTC) #49
commit-bot: I haz the power
3 years, 6 months ago (2017-06-24 07:18:20 UTC) #52
Message was sent while issue was closed.
Committed patchset #5 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/2c89a25cf7851a3830f884b8d368...

Powered by Google App Engine
This is Rietveld 408576698