diff options
| author | Huahui Wu <hwu@google.com> | 2011-01-07 17:30:53 -0800 |
|---|---|---|
| committer | Huahui Wu <hwu@google.com> | 2011-01-10 15:22:03 -0800 |
| commit | 0904c0dcfb11da9bb756b8d4f8a817b5efc9edc0 (patch) | |
| tree | 4ebf0f05f8a341cca7f97e8c00884ec3fd1a67cf /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
| parent | d2c78b39724d1d7b6e4f7bd54d0022c2847e9127 (diff) | |
b/3302354 Always pass multi-touch events into WebKit, then handle them in WebView if preventDefault is not set.
WebViewCore.java: add a MotionEvent field into TouchEventData for multi-touch so the extra data such as pressure, size can be preserved.
WebView.java:
1. Extracted the common code for multi-touch and single touch to a new private function: handleTouchEventCommon()
2. Extracted the multi-touch code, including zooming and panning, to a new private function: handleMultiTouchInWebView()
3. In onTouchEvent(), single touch events keep the code path, but multi-touch events are always passed to Webkit first.
4. In Privatehandler.handleMessage(), if WebKit didn't consume the multi-touch event, the private handler calls the handleMultiTouchInWebView() to zoom and pan.
Change-Id: I3eba8812bd7cf6a298ff12e0b66223dae6725060
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions
