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

Issue 831903004: [WebView] Add a new flushVisualState API to AwContents. (Closed)

Created:
5 years, 11 months ago by Ignacio Solla
Modified:
5 years, 10 months ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nduca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WebView] Add a new flushVisualState API to AwContents. I'm taking over the implementation of this API from mkosiba, who has written a large part of this change here: https://codereview.chromium.org/784343002/ Committed: https://crrev.com/37c8d8b3af9e52e8309f35e7a51697c7c11e8658 Cr-Commit-Position: refs/heads/master@{#314827}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nit #

Patch Set 3 : Only draw immediately when calling API and not when explictly loading blank #

Patch Set 4 : Clarify comment #

Total comments: 22

Patch Set 5 : Rename to loadBlankNow and test for paused and offscreen #

Total comments: 4

Patch Set 6 : Address review comments #

Total comments: 15

Patch Set 7 : Propagate isLoadingBlank bit to BVR, address other review comments #

Patch Set 8 : Rebase #

Patch Set 9 : Remove loadBlankNow and error codes. #

Patch Set 10 : Fix for crbug/452530 #

Total comments: 16

Patch Set 11 : Address review comments #

Patch Set 12 : int -> uint62 everywhere for real. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -14 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 10 4 chunks +48 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsClientShouldInterceptRequestTest.java View 1 2 3 4 5 6 7 2 chunks +3 lines, -6 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsRenderTest.java View 1 2 3 4 5 6 7 2 chunks +2 lines, -8 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/VisualStateTest.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +117 lines, -0 lines 0 comments Download
A android_webview/javatests/src/org/chromium/android_webview/test/util/GraphicsTestUtils.java View 1 2 3 4 5 6 1 chunk +52 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +24 lines, -0 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (5 generated)
Ignacio Solla
tsepez@chromium.org: Please review changes in messages mkosiba@chromium.org: Please review all changes jam@chromium.org: Please review changes ...
5 years, 11 months ago (2015-01-08 17:57:30 UTC) #2
Tom Sepez
Messages LGTM https://codereview.chromium.org/831903004/diff/1/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/831903004/diff/1/content/common/frame_messages.h#newcode383 content/common/frame_messages.h:383: // Requests that the RenderFrame send back ...
5 years, 11 months ago (2015-01-08 18:15:27 UTC) #3
Ignacio Solla
https://codereview.chromium.org/831903004/diff/1/content/common/frame_messages.h File content/common/frame_messages.h (right): https://codereview.chromium.org/831903004/diff/1/content/common/frame_messages.h#newcode383 content/common/frame_messages.h:383: // Requests that the RenderFrame send back a response ...
5 years, 11 months ago (2015-01-08 18:50:20 UTC) #5
Tom Sepez
> Let me know if the comment is now clearer. Nice. Thanks.
5 years, 11 months ago (2015-01-08 18:59:57 UTC) #6
jam
Is the intent of the content changes that a user of WebView knows when that ...
5 years, 11 months ago (2015-01-12 22:26:46 UTC) #7
Ignacio Solla
On 2015/01/12 22:26:46, jam wrote: > Is the intent of the content changes that a ...
5 years, 11 months ago (2015-01-13 14:05:41 UTC) #8
jam
On 2015/01/13 14:05:41, Ignacio Solla wrote: > On 2015/01/12 22:26:46, jam wrote: > > Is ...
5 years, 11 months ago (2015-01-13 18:38:58 UTC) #9
Ignacio Solla
On 2015/01/13 18:38:58, jam wrote: > On 2015/01/13 14:05:41, Ignacio Solla wrote: > > On ...
5 years, 11 months ago (2015-01-14 10:46:07 UTC) #10
mkosiba (inactive)
On 2015/01/13 18:38:58, jam wrote: > hmm, if DidFirstVisuallyNonEmptyPaint is flaky, then it should either ...
5 years, 11 months ago (2015-01-14 10:50:44 UTC) #11
mkosiba (inactive)
https://codereview.chromium.org/831903004/diff/80001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/80001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1087 android_webview/java/src/org/chromium/android_webview/AwContents.java:1087: if (mIsLoadingBlankImmediately && BLANK_URL.equals(url)) { this seems race-prone as ...
5 years, 11 months ago (2015-01-14 18:17:12 UTC) #12
mkosiba (inactive)
https://codereview.chromium.org/831903004/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/100001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1184 android_webview/java/src/org/chromium/android_webview/AwContents.java:1184: mIsLoadingBlankNow = true; we probably want to ignore TouchEvents ...
5 years, 11 months ago (2015-01-15 10:28:33 UTC) #13
jam
i see, ok, lgtm
5 years, 11 months ago (2015-01-15 17:06:43 UTC) #14
Ignacio Solla
Thanks for the good feedback! https://codereview.chromium.org/831903004/diff/80001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/80001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1087 android_webview/java/src/org/chromium/android_webview/AwContents.java:1087: if (mIsLoadingBlankImmediately && BLANK_URL.equals(url)) ...
5 years, 11 months ago (2015-01-16 16:02:08 UTC) #15
mkosiba (inactive)
lgtm https://codereview.chromium.org/831903004/diff/80001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/80001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1087 android_webview/java/src/org/chromium/android_webview/AwContents.java:1087: if (mIsLoadingBlankImmediately && BLANK_URL.equals(url)) { On 2015/01/16 16:02:07, ...
5 years, 11 months ago (2015-01-19 11:15:58 UTC) #16
Ignacio Solla
In addition to the WebView tests in this CL, I'll add content level tests in ...
5 years, 11 months ago (2015-01-19 18:26:41 UTC) #17
Ignacio Solla
https://codereview.chromium.org/831903004/diff/120001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/120001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1214 android_webview/java/src/org/chromium/android_webview/AwContents.java:1214: mIsLoadingBlankNow = false; On 2015/01/19 18:26:41, Ignacio Solla wrote: ...
5 years, 11 months ago (2015-01-19 18:31:57 UTC) #18
Ignacio Solla
On 2015/01/19 18:31:57, Ignacio Solla wrote: > https://codereview.chromium.org/831903004/diff/120001/android_webview/java/src/org/chromium/android_webview/AwContents.java > File android_webview/java/src/org/chromium/android_webview/AwContents.java > (right): > > ...
5 years, 11 months ago (2015-01-19 18:47:44 UTC) #20
boliu
On 2015/01/19 18:47:44, Ignacio Solla wrote: > Please Bo, take a look at BVR and ...
5 years, 11 months ago (2015-01-19 18:49:42 UTC) #21
aelias_OOO_until_Jul13
I heard about this new API from Bo today and I'm skeptical about it. It ...
5 years, 11 months ago (2015-01-21 01:59:19 UTC) #23
Ignacio Solla
On 2015/01/21 01:59:19, aelias wrote: > I heard about this new API from Bo today ...
5 years, 11 months ago (2015-01-21 11:43:38 UTC) #24
aelias_OOO_until_Jul13
On 2015/01/21 at 11:43:38, igsolla wrote: > On 2015/01/21 01:59:19, aelias wrote: > > I ...
5 years, 11 months ago (2015-01-21 18:43:24 UTC) #25
mkosiba (inactive)
On 2015/01/21 18:43:24, aelias wrote: > > Not true. This API is not merely a ...
5 years, 11 months ago (2015-01-21 19:52:45 UTC) #26
aelias_OOO_until_Jul13
Bo just told me the fallback tick problem arises only in the case where the ...
5 years, 11 months ago (2015-01-21 20:36:38 UTC) #27
aelias_OOO_until_Jul13
On 2015/01/21 at 20:36:38, aelias wrote: > Bo just told me the fallback tick problem ...
5 years, 11 months ago (2015-01-21 22:25:46 UTC) #28
mkosiba (inactive)
On 2015/01/21 22:25:46, aelias wrote: > OK, on further thought, the above summary is *not* ...
5 years, 11 months ago (2015-01-22 11:10:06 UTC) #29
boliu
On 2015/01/22 11:10:06, mkosiba wrote: > On 2015/01/21 22:25:46, aelias wrote: > > OK, on ...
5 years, 11 months ago (2015-01-22 16:43:28 UTC) #30
Ignacio Solla
On 2015/01/22 16:43:28, boliu wrote: > On 2015/01/22 11:10:06, mkosiba wrote: > > On 2015/01/21 ...
5 years, 11 months ago (2015-01-27 16:42:21 UTC) #31
mkosiba (inactive)
https://codereview.chromium.org/831903004/diff/200001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/200001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2160 android_webview/java/src/org/chromium/android_webview/AwContents.java:2160: new Handler().post(new Runnable() { uh.. creating a new handler... ...
5 years, 11 months ago (2015-01-27 22:07:21 UTC) #32
boliu
aw still lgtm https://codereview.chromium.org/831903004/diff/200001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/200001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2160 android_webview/java/src/org/chromium/android_webview/AwContents.java:2160: new Handler().post(new Runnable() { On 2015/01/27 ...
5 years, 10 months ago (2015-01-30 01:45:42 UTC) #33
Ignacio Solla
https://codereview.chromium.org/831903004/diff/200001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/831903004/diff/200001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode2160 android_webview/java/src/org/chromium/android_webview/AwContents.java:2160: new Handler().post(new Runnable() { On 2015/01/27 22:07:20, mkosiba (inactive) ...
5 years, 10 months ago (2015-02-05 16:00:38 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/831903004/240001
5 years, 10 months ago (2015-02-05 16:03:32 UTC) #36
commit-bot: I haz the power
Committed patchset #12 (id:240001)
5 years, 10 months ago (2015-02-05 16:55:18 UTC) #37
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 16:56:33 UTC) #38
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/37c8d8b3af9e52e8309f35e7a51697c7c11e8658
Cr-Commit-Position: refs/heads/master@{#314827}

Powered by Google App Engine
This is Rietveld 408576698