LibreOffice Module android (master) 1
|
Public Member Functions | |
GeckoLayerClient (LibreOfficeMainActivity context) | |
void | setView (LayerView view) |
void | notifyReady () |
void | destroy () |
LayerView | getView () |
void | abortPanZoomAnimation () |
Aborts any pan/zoom animation that is currently in progress. More... | |
void | setZoomConstraints (ZoomConstraints constraints) |
void | setPageRect (float cssPageLeft, float cssPageTop, float cssPageRight, float cssPageBottom) |
The compositor invokes this function whenever it determines that the page rect has changed (based on the information it gets from layout). More... | |
void | beginDrawing () |
void | endDrawing () |
ImmutableViewportMetrics | getViewportMetrics () |
Implementation of PanZoomTarget. More... | |
ZoomConstraints | getZoomConstraints () |
Implementation of PanZoomTarget. More... | |
void | setAnimationTarget (ImmutableViewportMetrics viewport) |
Implementation of PanZoomTarget. More... | |
void | setViewportMetrics (ImmutableViewportMetrics viewport) |
Implementation of PanZoomTarget You must hold the monitor while calling this. More... | |
void | forceRedraw () |
Implementation of PanZoomTarget. More... | |
boolean | post (Runnable action) |
Implementation of PanZoomTarget. More... | |
Object | getLock () |
Implementation of PanZoomTarget. More... | |
PointF | convertViewPointToLayerPoint (PointF viewPoint) |
boolean | isFullScreen () |
Implementation of PanZoomTarget. More... | |
void | zoomTo (RectF rect) |
void | moveTo (PointF point, Float zoom) |
Move the viewport to the desired point, and change the zoom level. More... | |
void | zoomTo (float pageWidth, float pageHeight) |
void | forceRender () |
void | clearAndResetlayers () |
void | invalidateTiles (List< SubTile > tilesToInvalidate, RectF rect) |
ImmutableViewportMetrics | getViewportMetrics () |
ZoomConstraints | getZoomConstraints () |
void | setAnimationTarget (ImmutableViewportMetrics viewport) |
void | setViewportMetrics (ImmutableViewportMetrics viewport) |
void | forceRedraw () |
This triggers an (asynchronous) viewport update/redraw. More... | |
boolean | post (Runnable action) |
Object | getLock () |
PointF | convertViewPointToLayerPoint (PointF viewPoint) |
boolean | isFullScreen () |
Private Member Functions | |
boolean | getRedrawHint () |
Returns true if this controller is fine with performing a redraw operation or false if it would prefer that the action didn't take place. More... | |
void | sendResizeEventIfNecessary (boolean force) |
void | setPageRect (RectF rect, RectF cssRect) |
Sets the current page rect. More... | |
void | adjustViewport (DisplayPortMetrics displayPort) |
DisplayPortMetrics | getDisplayPort () |
void | geometryChanged () |
void | reevaluateTiles () |
Private Attributes | |
LayerRenderer | mLayerRenderer |
LibreOfficeMainActivity | mContext |
IntSize | mScreenSize |
DisplayPortMetrics | mDisplayPort |
ComposedTileLayer | mLowResLayer |
ComposedTileLayer | mRootLayer |
boolean | mForceRedraw |
volatile ImmutableViewportMetrics | mViewportMetrics |
ZoomConstraints | mZoomConstraints |
boolean | mIsReady |
PanZoomController | mPanZoomController |
LayerView | mView |
final DisplayPortCalculator | mDisplayPortCalculator |
Static Private Attributes | |
static final String | LOGTAG = GeckoLayerClient.class.getSimpleName() |
Definition at line 18 of file GeckoLayerClient.java.
|
inline |
Definition at line 54 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mContext, org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPort, org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPortCalculator, org.mozilla.gecko.gfx.GeckoLayerClient.mForceRedraw, org.mozilla.gecko.gfx.GeckoLayerClient.mScreenSize, and org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics.
|
inline |
Aborts any pan/zoom animation that is currently in progress.
Definition at line 192 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController, org.mozilla.gecko.gfx.GeckoLayerClient.mView, and run().
|
inlineprivate |
Definition at line 175 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ImmutableViewportMetrics.clamp(), org.mozilla.gecko.gfx.GeckoLayerClient.getViewportMetrics(), org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPort, org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPortCalculator, org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController, and org.mozilla.gecko.gfx.GeckoLayerClient.reevaluateTiles().
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.geometryChanged(), and org.mozilla.gecko.gfx.GeckoLayerClient.setAnimationTarget().
|
inline |
Definition at line 227 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ComposedTileLayer.beginTransaction(), org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer, and org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer.
|
inline |
Definition at line 347 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ComposedTileLayer.clearAndReset(), org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer, and org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer.
|
inline |
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 302 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ImmutableViewportMetrics.getOrigin(), org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics, and org.mozilla.gecko.gfx.ImmutableViewportMetrics.zoomFactor.
Referenced by org.libreoffice.canvas.GraphicSelection.sendGraphicSelection(), and org.libreoffice.overlay.DocumentOverlayView.showPageNumberRect().
|
inline |
Definition at line 87 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController.
Referenced by org.mozilla.gecko.gfx.LayerView.destroy(), and org.libreoffice.LibreOfficeMainActivity.onDestroy().
|
inline |
Definition at line 232 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ComposedTileLayer.endTransaction(), org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer, and org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer.
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 283 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.geometryChanged(), org.mozilla.gecko.gfx.GeckoLayerClient.mForceRedraw, and org.mozilla.gecko.gfx.GeckoLayerClient.mIsReady.
|
inline |
Definition at line 337 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mView, and org.mozilla.gecko.gfx.LayerView.requestRender().
|
inlineprivate |
Definition at line 237 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport(), org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint(), and org.mozilla.gecko.gfx.GeckoLayerClient.sendResizeEventIfNecessary().
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.forceRedraw(), and org.mozilla.gecko.gfx.GeckoLayerClient.setViewportMetrics().
|
inlineprivate |
Definition at line 223 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPort.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint().
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 298 of file GeckoLayerClient.java.
References Object.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect().
|
inlineprivate |
Returns true if this controller is fine with performing a redraw operation or false if it would prefer that the action didn't take place.
Definition at line 107 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.getDisplayPort(), org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPortCalculator, org.mozilla.gecko.gfx.GeckoLayerClient.mForceRedraw, org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController, and org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.geometryChanged().
|
inline |
Definition at line 99 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mView.
Referenced by org.libreoffice.LibreOfficeMainActivity.initializeCalcHeaders(), org.mozilla.gecko.gfx.LayerView.registerCxxCompositor(), and org.libreoffice.canvas.GraphicSelection.sendGraphicSelection().
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 246 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport(), org.libreoffice.canvas.AdjustLengthLine.dragEnd(), org.mozilla.gecko.gfx.LayerView.getViewportMetrics(), org.libreoffice.InvalidationHandler.moveViewportToMakeCursorVisible(), org.libreoffice.InvalidationHandler.moveViewportToMakeSelectionVisible(), org.mozilla.gecko.gfx.LayerRenderer.onDrawFrame(), org.mozilla.gecko.OnSlideSwipeListener.GestureListener.onFling(), org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect(), org.libreoffice.canvas.CalcSelectionBox.signalHandleMove(), and org.libreoffice.canvas.SelectionHandle.signalHandleMove().
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 252 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mZoomConstraints.
|
inline |
Definition at line 352 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ComposedTileLayer.invalidateTiles(), org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer, and org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer.
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 314 of file GeckoLayerClient.java.
|
inline |
Move the viewport to the desired point, and change the zoom level.
Definition at line 327 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController, and point().
Referenced by org.libreoffice.LOKitShell.moveViewportTo().
|
inline |
Definition at line 73 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mContext, org.mozilla.gecko.gfx.GeckoLayerClient.mIsReady, org.mozilla.gecko.gfx.GeckoLayerClient.mLayerRenderer, org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer, org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer, org.mozilla.gecko.gfx.GeckoLayerClient.mView, org.mozilla.gecko.gfx.LayerView.requestRender(), org.mozilla.gecko.gfx.GeckoLayerClient.sendResizeEventIfNecessary(), and org.mozilla.gecko.gfx.LayerView.setLayerRenderer().
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 292 of file GeckoLayerClient.java.
References action, and org.mozilla.gecko.gfx.GeckoLayerClient.mView.
Referenced by org.libreoffice.LOKitShell.moveViewportTo(), and org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect().
|
inlineprivate |
Definition at line 342 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPort, org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer, org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer, org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics, and org.mozilla.gecko.gfx.ComposedTileLayer.reevaluateTiles().
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport().
|
inlineprivate |
Definition at line 139 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.IntSize.equals(), org.mozilla.gecko.gfx.IntSize.height, org.mozilla.gecko.gfx.GeckoLayerClient.mContext, org.mozilla.gecko.gfx.GeckoLayerClient.mScreenSize, org.libreoffice.LOKitShell.sendSizeChangedEvent(), and org.mozilla.gecko.gfx.IntSize.width.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.geometryChanged(), and org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady().
|
inline |
Implementation of PanZoomTarget.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 258 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport(), org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPortCalculator, and org.mozilla.gecko.gfx.GeckoLayerClient.mIsReady.
|
inline |
The compositor invokes this function whenever it determines that the page rect has changed (based on the information it gets from layout).
If setFirstPaintViewport is invoked on a frame, then this function will not be. For any given frame, this function will be invoked before syncViewportInfo.
Definition at line 211 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.getLock(), org.mozilla.gecko.gfx.GeckoLayerClient.getViewportMetrics(), org.mozilla.gecko.gfx.RectUtils.scale(), org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect(), and org.mozilla.gecko.gfx.ImmutableViewportMetrics.zoomFactor.
|
inlineprivate |
Sets the current page rect.
You must hold the monitor while calling this.
Definition at line 155 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.ImmutableViewportMetrics.getCssPageRect(), org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController, org.mozilla.gecko.gfx.GeckoLayerClient.mView, org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics, org.mozilla.gecko.gfx.GeckoLayerClient.post(), org.mozilla.gecko.gfx.LayerView.requestRender(), run(), and org.mozilla.gecko.gfx.ImmutableViewportMetrics.setPageRect().
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect().
|
inline |
Definition at line 67 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mContext, org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController, and org.mozilla.gecko.gfx.GeckoLayerClient.mView.
|
inline |
Implementation of PanZoomTarget You must hold the monitor while calling this.
Implements org.mozilla.gecko.gfx.PanZoomTarget.
Definition at line 273 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.geometryChanged(), org.mozilla.gecko.gfx.GeckoLayerClient.mIsReady, org.mozilla.gecko.gfx.GeckoLayerClient.mView, org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics, and org.mozilla.gecko.gfx.LayerView.requestRender().
|
inline |
Definition at line 202 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mZoomConstraints.
|
inline |
Definition at line 333 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.zoomTo().
|
inline |
Definition at line 318 of file GeckoLayerClient.java.
References org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.zoomTo().
|
staticprivate |
Definition at line 19 of file GeckoLayerClient.java.
|
private |
Definition at line 23 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient(), org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady(), org.mozilla.gecko.gfx.GeckoLayerClient.sendResizeEventIfNecessary(), and org.mozilla.gecko.gfx.GeckoLayerClient.setView().
|
private |
Definition at line 25 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport(), org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient(), org.mozilla.gecko.gfx.GeckoLayerClient.getDisplayPort(), and org.mozilla.gecko.gfx.GeckoLayerClient.reevaluateTiles().
|
private |
Definition at line 52 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport(), org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient(), org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint(), and org.mozilla.gecko.gfx.GeckoLayerClient.setAnimationTarget().
|
private |
Definition at line 30 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.forceRedraw(), org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient(), and org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint().
|
private |
Definition at line 48 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.forceRedraw(), org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady(), org.mozilla.gecko.gfx.GeckoLayerClient.setAnimationTarget(), and org.mozilla.gecko.gfx.GeckoLayerClient.setViewportMetrics().
|
private |
Definition at line 21 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady().
|
private |
Definition at line 27 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.beginDrawing(), org.mozilla.gecko.gfx.GeckoLayerClient.clearAndResetlayers(), org.mozilla.gecko.gfx.GeckoLayerClient.endDrawing(), org.mozilla.gecko.gfx.GeckoLayerClient.invalidateTiles(), org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady(), and org.mozilla.gecko.gfx.GeckoLayerClient.reevaluateTiles().
|
private |
Definition at line 50 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.abortPanZoomAnimation(), org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport(), org.mozilla.gecko.gfx.GeckoLayerClient.destroy(), org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint(), org.mozilla.gecko.gfx.GeckoLayerClient.moveTo(), org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect(), org.mozilla.gecko.gfx.GeckoLayerClient.setView(), and org.mozilla.gecko.gfx.GeckoLayerClient.zoomTo().
|
private |
Definition at line 28 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.beginDrawing(), org.mozilla.gecko.gfx.GeckoLayerClient.clearAndResetlayers(), org.mozilla.gecko.gfx.GeckoLayerClient.endDrawing(), org.mozilla.gecko.gfx.GeckoLayerClient.invalidateTiles(), org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady(), and org.mozilla.gecko.gfx.GeckoLayerClient.reevaluateTiles().
|
private |
Definition at line 24 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient(), and org.mozilla.gecko.gfx.GeckoLayerClient.sendResizeEventIfNecessary().
|
private |
Definition at line 51 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.abortPanZoomAnimation(), org.mozilla.gecko.gfx.GeckoLayerClient.forceRender(), org.mozilla.gecko.gfx.GeckoLayerClient.getView(), org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady(), org.mozilla.gecko.gfx.GeckoLayerClient.post(), org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect(), org.mozilla.gecko.gfx.GeckoLayerClient.setView(), and org.mozilla.gecko.gfx.GeckoLayerClient.setViewportMetrics().
|
private |
Definition at line 44 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.convertViewPointToLayerPoint(), org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient(), org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint(), org.mozilla.gecko.gfx.GeckoLayerClient.getViewportMetrics(), org.mozilla.gecko.gfx.GeckoLayerClient.reevaluateTiles(), org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect(), and org.mozilla.gecko.gfx.GeckoLayerClient.setViewportMetrics().
|
private |
Definition at line 46 of file GeckoLayerClient.java.
Referenced by org.mozilla.gecko.gfx.GeckoLayerClient.getZoomConstraints(), and org.mozilla.gecko.gfx.GeckoLayerClient.setZoomConstraints().