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

Issue 2842953002: Implement CWVWebView.scrollView. (Closed)

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

Description

Implement CWVWebView.scrollView. BUG=714543 Review-Url: https://codereview.chromium.org/2842953002 Cr-Commit-Position: refs/heads/master@{#469925} Committed: https://chromium.googlesource.com/chromium/src/+/ec1c2d94aaa5bc86e24dac95d990286a706df439

Patch Set 1 #

Patch Set 2 : Revert unintended change. #

Total comments: 17

Patch Set 3 : Apply review comments. #

Patch Set 4 : Rebase. #

Patch Set 5 : Add ARC guard. #

Patch Set 6 : Make contentSize KVO compliant. #

Patch Set 7 : Apply review comments. #

Total comments: 15

Patch Set 8 : Apply review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -0 lines) Patch
M ios/web_view/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
A ios/web_view/internal/cwv_scroll_view.mm View 1 2 3 4 5 6 7 1 chunk +108 lines, -0 lines 0 comments Download
A ios/web_view/internal/cwv_scroll_view_internal.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M ios/web_view/internal/cwv_web_view.mm View 4 chunks +7 lines, -0 lines 0 comments Download
M ios/web_view/public/ChromeWebView.h View 1 chunk +2 lines, -0 lines 0 comments Download
A ios/web_view/public/cwv_scroll_view.h View 1 2 3 4 5 6 7 1 chunk +47 lines, -0 lines 0 comments Download
A ios/web_view/public/cwv_scroll_view_delegate.h View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M ios/web_view/public/cwv_web_view.h View 2 chunks +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (6 generated)
Hiroshi Ichikawa
3 years, 8 months ago (2017-04-26 06:29:51 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2842953002/diff/20001/ios/web_view/internal/cwv_scroll_view.mm File ios/web_view/internal/cwv_scroll_view.mm (right): https://codereview.chromium.org/2842953002/diff/20001/ios/web_view/internal/cwv_scroll_view.mm#newcode20 ios/web_view/internal/cwv_scroll_view.mm:20: if (_proxy) { There is no need for this ...
3 years, 7 months ago (2017-04-26 19:11:31 UTC) #4
Hiroshi Ichikawa
https://codereview.chromium.org/2842953002/diff/20001/ios/web_view/internal/cwv_scroll_view.mm File ios/web_view/internal/cwv_scroll_view.mm (right): https://codereview.chromium.org/2842953002/diff/20001/ios/web_view/internal/cwv_scroll_view.mm#newcode20 ios/web_view/internal/cwv_scroll_view.mm:20: if (_proxy) { On 2017/04/26 19:11:31, Eugene But wrote: ...
3 years, 7 months ago (2017-04-27 02:30:11 UTC) #5
Hiroshi Ichikawa
FYI I made a change to make contentSize property KVO compliant.
3 years, 7 months ago (2017-04-27 07:24:15 UTC) #6
Eugene But (OOO till 7-30)
lgtm, but please do not use link to internal Google services (we trying to avoid ...
3 years, 7 months ago (2017-04-27 12:25:24 UTC) #7
Hiroshi Ichikawa
michaeldo@ Can you also review this? Or maybe should I submit this without michaeldo@'s review ...
3 years, 7 months ago (2017-04-28 01:30:47 UTC) #8
Eugene But (OOO till 7-30)
Thanks Hiroshi! https://codereview.chromium.org/2842953002/diff/20001/ios/web_view/public/cwv_scroll_view.h File ios/web_view/public/cwv_scroll_view.h (right): https://codereview.chromium.org/2842953002/diff/20001/ios/web_view/public/cwv_scroll_view.h#newcode37 ios/web_view/public/cwv_scroll_view.h:37: // https://chromereviews.googleplex.com/323287014/ On 2017/04/28 01:30:47, Hiroshi Ichikawa ...
3 years, 7 months ago (2017-04-28 02:44:20 UTC) #9
michaeldo
Sorry for the delay. Please take a look at a few comments. Thank you for ...
3 years, 7 months ago (2017-05-01 18:49:53 UTC) #10
Hiroshi Ichikawa
https://codereview.chromium.org/2842953002/diff/120001/ios/web_view/internal/cwv_scroll_view.mm File ios/web_view/internal/cwv_scroll_view.mm (right): https://codereview.chromium.org/2842953002/diff/120001/ios/web_view/internal/cwv_scroll_view.mm#newcode28 ios/web_view/internal/cwv_scroll_view.mm:28: @synthesize contentSize = _contentSize; On 2017/05/01 18:49:53, michaeldo wrote: ...
3 years, 7 months ago (2017-05-08 06:52:41 UTC) #11
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/2842953002/140001
3 years, 7 months ago (2017-05-08 06:53:27 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/ec1c2d94aaa5bc86e24dac95d990286a706df439
3 years, 7 months ago (2017-05-08 08:42:13 UTC) #17
michaeldo
3 years, 7 months ago (2017-05-08 15:18:18 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/2842953002/diff/120001/ios/web_view/internal/...
File ios/web_view/internal/cwv_web_view.mm (right):

https://codereview.chromium.org/2842953002/diff/120001/ios/web_view/internal/...
ios/web_view/internal/cwv_web_view.mm:121: _scrollView = [[CWVScrollView alloc]
init];
On 2017/05/08 06:52:41, Hiroshi Ichikawa wrote:
> On 2017/05/01 18:49:53, michaeldo wrote:
> > This readonly property should be redefined above as writeable which I
couldn't
> > find unless I'm missing it somewhere.
> 
> Why? Here I directly assign to the underlying instance variable |_scrollView|,
> not |self.scrollView|, so it doesn't require the property to be readwrite. And
> it's assigned only in the initializer here.

This is a good point. You're right that we don't need to redefine it. Sorry, I
was under the impression we always do so, but I don't see a reason to change it
here.

Powered by Google App Engine
This is Rietveld 408576698