OSDN Git Service

Add visual state callbacks to the WebView.
authorTobias Sargeant <tobiasjs@google.com>
Tue, 3 Mar 2015 18:07:40 +0000 (18:07 +0000)
committerTobias Sargeant <tobiasjs@google.com>
Tue, 17 Mar 2015 15:19:07 +0000 (15:19 +0000)
commita8352f40316fb265c74d42e908eb30284259b47d
treef50649c45831244354ff905e10e480c3da85acfb
parentbb41a5f6def031b99f5569b192425b9edbdce7cc
Add visual state callbacks to the WebView.

Registering a visual state callback allows the caller to be notified
after the commit, activation and swap of the current (or future) state
of the DOM tree has occurred. At the point at which the callback is
called, the caller can be sure that any DOM updates made prior to
the registration are ready to be drawn in the next WebView#onDraw.

We also provide a convenience callback related to the visual state:

* WebViewClient.onPageCommitVisible; called at the earliest point at
  which the next draw will not render contents from the previously
  loaded page.

Bug: 6375170
Change-Id: I17e706b6e6ba4a8c28c835552687c9f7a4623024
api/current.txt
api/system-current.txt
core/java/android/webkit/WebView.java
core/java/android/webkit/WebViewClient.java
core/java/android/webkit/WebViewProvider.java