This source file includes following definitions.
- hide
- isShowing
- beforeStartUpdatingPosition
- updatePosition
- onDetached
- setVisibleClippingRectangle
- getVisibleClippingRectangle
package org.chromium.content.browser.input;
import android.graphics.Rect;
import android.view.ViewTreeObserver;
abstract class CursorController implements ViewTreeObserver.OnTouchModeChangeListener {
private Rect mVisibleClippingRectangle;
abstract void hide();
abstract boolean isShowing();
abstract void beforeStartUpdatingPosition(HandleView handle);
abstract void updatePosition(HandleView handle, int x, int y);
abstract void onDetached();
public void setVisibleClippingRectangle(int left, int top, int right, int bottom) {
if (mVisibleClippingRectangle == null) {
mVisibleClippingRectangle = new Rect(left, top, right, bottom);
} else {
mVisibleClippingRectangle.set(left,top,right,bottom);
}
}
Rect getVisibleClippingRectangle() {
return mVisibleClippingRectangle;
}
}