OSDN Git Service

First draft of multitouch in the WebView.
authorGrace Kloba <klobag@google.com>
Fri, 8 Jan 2010 05:58:32 +0000 (21:58 -0800)
committerGrace Kloba <klobag@google.com>
Sat, 9 Jan 2010 07:22:41 +0000 (23:22 -0800)
commit237bd75b6ebc1298cbd1c46b43903d19d7dd18b1
treee8ed85e1d034efdc8570ffabaa0c2ee1470bdaa6
parentdaa8318de3c63a28eccb52546c230e5c5caee962
First draft of multitouch in the WebView.

Currently we just handle a simple pinch action. We
will wait for framework support for more complicated
gesture.

When pinch in the webview, zoom level will be changed
on the fly. But we won't re-wrap the text until user
action like double tap, rotate screen.

Double tap will re-layout the page and wrap the text
to the screen width. We try to keep the spot you
tapped at the same place on the screen after relayout.
If the block after relayout fully fit on the current
screen, we will center it for easy reading.

Fix http://b/issue?id=2360032
WebKit/android/jni/WebViewCore.cpp
WebKit/android/jni/WebViewCore.h