root/content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. onPinchStarted
  2. onPinchEnded
  3. onFlingStartGesture
  4. onFlingCancelGesture
  5. onFlingEndGesture
  6. onUnhandledFlingStartEvent
  7. onScrollUpdateGestureConsumed
  8. onScrollStarted
  9. onScrollEnded
  10. onScrollOffsetOrExtentChanged

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.content_public.browser;

/**
 * A class that is notified of events and state changes related to gesture processing from
 * the ContentViewCore.
 */
public class GestureStateListener {
    /**
     * Called when the pinch gesture starts.
     */
    public void onPinchStarted() {}

    /**
     * Called when the pinch gesture ends.
     */
    public void onPinchEnded() {}

    /**
     * Called when a fling starts.
     */
    public void onFlingStartGesture(int vx, int vy, int scrollOffsetY, int scrollExtentY) {}

    /**
     * Called when a fling is cancelled.
     */
    public void onFlingCancelGesture() {}

    /**
     * Called when a fling has ended.
     */
    public void onFlingEndGesture(int scrollOffsetY, int scrollExtentY) {}

    /**
     * Called when a fling event was not handled by the renderer.
     */
    public void onUnhandledFlingStartEvent(int vx, int vy) {}

    /**
     * Called to indicate that a scroll update gesture had been consumed by the page.
     * This callback is called whenever any layer is scrolled (like a frame or div). It is
     * not called when a JS touch handler consumes the event (preventDefault), it is not called
     * for JS-initiated scrolling.
     */
    public void onScrollUpdateGestureConsumed() {}

    /*
     * Called when a scroll gesture has started.
     */
    public void onScrollStarted(int scrollOffsetY, int scrollExtentY) {}

    /*
     * Called when a scroll gesture has stopped.
     */
    public void onScrollEnded(int scrollOffsetY, int scrollExtentY) {}

    /*
     * Called when the scroll offsets or extents may have changed.
     */
    public void onScrollOffsetOrExtentChanged(int scrollOffsetY, int scrollExtentY) {}
}

/* [<][>][^][v][top][bottom][index][help] */