OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import android.app.Activity; | 7 import android.app.Activity; |
8 import android.content.ComponentCallbacks2; | 8 import android.content.ComponentCallbacks2; |
9 import android.content.Context; | 9 import android.content.Context; |
10 import android.content.res.Configuration; | 10 import android.content.res.Configuration; |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 // WebViewClassic does. | 393 // WebViewClassic does. |
394 mLayoutSizer.freezeLayoutRequests(); | 394 mLayoutSizer.freezeLayoutRequests(); |
395 } | 395 } |
396 | 396 |
397 @Override | 397 @Override |
398 public void onPinchGestureEnd() { | 398 public void onPinchGestureEnd() { |
399 mLayoutSizer.unfreezeLayoutRequests(); | 399 mLayoutSizer.unfreezeLayoutRequests(); |
400 } | 400 } |
401 | 401 |
402 @Override | 402 @Override |
403 public void onFlingStartGesture(int velocityX, int velocityY) { | |
404 mScrollOffsetManager.onFlingStartGesture(velocityX, velocityY); | |
405 } | |
406 | |
407 @Override | |
408 public void onFlingCancelGesture() { | 403 public void onFlingCancelGesture() { |
409 mScrollOffsetManager.onFlingCancelGesture(); | 404 mScrollOffsetManager.onFlingCancelGesture(); |
410 } | 405 } |
411 | 406 |
412 @Override | 407 @Override |
413 public void onUnhandledFlingStartEvent() { | 408 public void onUnhandledFlingStartEvent(int velocityX, int velocityY) { |
414 mScrollOffsetManager.onUnhandledFlingStartEvent(); | 409 mScrollOffsetManager.onUnhandledFlingStartEvent(velocityX, velocityY
); |
415 } | 410 } |
416 | 411 |
417 @Override | 412 @Override |
418 public void onScrollUpdateGestureConsumed() { | 413 public void onScrollUpdateGestureConsumed() { |
419 mScrollAccessibilityHelper.postViewScrolledAccessibilityEventCallbac
k(); | 414 mScrollAccessibilityHelper.postViewScrolledAccessibilityEventCallbac
k(); |
420 } | 415 } |
421 } | 416 } |
422 | 417 |
423 //--------------------------------------------------------------------------
------------------ | 418 //--------------------------------------------------------------------------
------------------ |
424 private class AwComponentCallbacks implements ComponentCallbacks2 { | 419 private class AwComponentCallbacks implements ComponentCallbacks2 { |
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2074 | 2069 |
2075 private native void nativeInvokeGeolocationCallback( | 2070 private native void nativeInvokeGeolocationCallback( |
2076 long nativeAwContents, boolean value, String requestingFrame); | 2071 long nativeAwContents, boolean value, String requestingFrame); |
2077 | 2072 |
2078 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean
networkUp); | 2073 private native void nativeSetJsOnlineProperty(long nativeAwContents, boolean
networkUp); |
2079 | 2074 |
2080 private native void nativeTrimMemory(long nativeAwContents, int level); | 2075 private native void nativeTrimMemory(long nativeAwContents, int level); |
2081 | 2076 |
2082 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo
rter awPdfExporter); | 2077 private native void nativeCreatePdfExporter(long nativeAwContents, AwPdfExpo
rter awPdfExporter); |
2083 } | 2078 } |
OLD | NEW |