LibreOffice Module android (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.mozilla.gecko.gfx.GeckoLayerClient Class Reference
Inheritance diagram for org.mozilla.gecko.gfx.GeckoLayerClient:
[legend]
Collaboration diagram for org.mozilla.gecko.gfx.GeckoLayerClient:
[legend]

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()
 

Detailed Description

Definition at line 18 of file GeckoLayerClient.java.

Constructor & Destructor Documentation

◆ GeckoLayerClient()

org.mozilla.gecko.gfx.GeckoLayerClient.GeckoLayerClient ( LibreOfficeMainActivity  context)
inline

Member Function Documentation

◆ abortPanZoomAnimation()

void org.mozilla.gecko.gfx.GeckoLayerClient.abortPanZoomAnimation ( )
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().

◆ adjustViewport()

void org.mozilla.gecko.gfx.GeckoLayerClient.adjustViewport ( DisplayPortMetrics  displayPort)
inlineprivate

◆ beginDrawing()

void org.mozilla.gecko.gfx.GeckoLayerClient.beginDrawing ( )
inline

◆ clearAndResetlayers()

void org.mozilla.gecko.gfx.GeckoLayerClient.clearAndResetlayers ( )
inline

◆ convertViewPointToLayerPoint()

PointF org.mozilla.gecko.gfx.GeckoLayerClient.convertViewPointToLayerPoint ( PointF  viewPoint)
inline

◆ destroy()

void org.mozilla.gecko.gfx.GeckoLayerClient.destroy ( )
inline

◆ endDrawing()

void org.mozilla.gecko.gfx.GeckoLayerClient.endDrawing ( )
inline

◆ forceRedraw()

void org.mozilla.gecko.gfx.GeckoLayerClient.forceRedraw ( )
inline

◆ forceRender()

void org.mozilla.gecko.gfx.GeckoLayerClient.forceRender ( )
inline

◆ geometryChanged()

void org.mozilla.gecko.gfx.GeckoLayerClient.geometryChanged ( )
inlineprivate

◆ getDisplayPort()

DisplayPortMetrics org.mozilla.gecko.gfx.GeckoLayerClient.getDisplayPort ( )
inlineprivate

◆ getLock()

Object org.mozilla.gecko.gfx.GeckoLayerClient.getLock ( )
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().

◆ getRedrawHint()

boolean org.mozilla.gecko.gfx.GeckoLayerClient.getRedrawHint ( )
inlineprivate

◆ getView()

LayerView org.mozilla.gecko.gfx.GeckoLayerClient.getView ( )
inline

◆ getViewportMetrics()

ImmutableViewportMetrics org.mozilla.gecko.gfx.GeckoLayerClient.getViewportMetrics ( )
inline

◆ getZoomConstraints()

ZoomConstraints org.mozilla.gecko.gfx.GeckoLayerClient.getZoomConstraints ( )
inline

◆ invalidateTiles()

void org.mozilla.gecko.gfx.GeckoLayerClient.invalidateTiles ( List< SubTile tilesToInvalidate,
RectF  rect 
)
inline

◆ isFullScreen()

boolean org.mozilla.gecko.gfx.GeckoLayerClient.isFullScreen ( )
inline

Implementation of PanZoomTarget.

Implements org.mozilla.gecko.gfx.PanZoomTarget.

Definition at line 314 of file GeckoLayerClient.java.

◆ moveTo()

void org.mozilla.gecko.gfx.GeckoLayerClient.moveTo ( PointF  point,
Float  zoom 
)
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().

◆ notifyReady()

void org.mozilla.gecko.gfx.GeckoLayerClient.notifyReady ( )
inline

◆ post()

boolean org.mozilla.gecko.gfx.GeckoLayerClient.post ( Runnable  action)
inline

◆ reevaluateTiles()

void org.mozilla.gecko.gfx.GeckoLayerClient.reevaluateTiles ( )
inlineprivate

◆ sendResizeEventIfNecessary()

void org.mozilla.gecko.gfx.GeckoLayerClient.sendResizeEventIfNecessary ( boolean  force)
inlineprivate

◆ setAnimationTarget()

void org.mozilla.gecko.gfx.GeckoLayerClient.setAnimationTarget ( ImmutableViewportMetrics  viewport)
inline

◆ setPageRect() [1/2]

void org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect ( float  cssPageLeft,
float  cssPageTop,
float  cssPageRight,
float  cssPageBottom 
)
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.

◆ setPageRect() [2/2]

void org.mozilla.gecko.gfx.GeckoLayerClient.setPageRect ( RectF  rect,
RectF  cssRect 
)
inlineprivate

◆ setView()

void org.mozilla.gecko.gfx.GeckoLayerClient.setView ( LayerView  view)
inline

◆ setViewportMetrics()

void org.mozilla.gecko.gfx.GeckoLayerClient.setViewportMetrics ( ImmutableViewportMetrics  viewport)
inline

◆ setZoomConstraints()

void org.mozilla.gecko.gfx.GeckoLayerClient.setZoomConstraints ( ZoomConstraints  constraints)
inline

◆ zoomTo() [1/2]

void org.mozilla.gecko.gfx.GeckoLayerClient.zoomTo ( float  pageWidth,
float  pageHeight 
)
inline

◆ zoomTo() [2/2]

void org.mozilla.gecko.gfx.GeckoLayerClient.zoomTo ( RectF  rect)
inline

Member Data Documentation

◆ LOGTAG

final String org.mozilla.gecko.gfx.GeckoLayerClient.LOGTAG = GeckoLayerClient.class.getSimpleName()
staticprivate

Definition at line 19 of file GeckoLayerClient.java.

◆ mContext

LibreOfficeMainActivity org.mozilla.gecko.gfx.GeckoLayerClient.mContext
private

◆ mDisplayPort

DisplayPortMetrics org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPort
private

◆ mDisplayPortCalculator

final DisplayPortCalculator org.mozilla.gecko.gfx.GeckoLayerClient.mDisplayPortCalculator
private

◆ mForceRedraw

boolean org.mozilla.gecko.gfx.GeckoLayerClient.mForceRedraw
private

◆ mIsReady

boolean org.mozilla.gecko.gfx.GeckoLayerClient.mIsReady
private

◆ mLayerRenderer

LayerRenderer org.mozilla.gecko.gfx.GeckoLayerClient.mLayerRenderer
private

◆ mLowResLayer

ComposedTileLayer org.mozilla.gecko.gfx.GeckoLayerClient.mLowResLayer
private

◆ mPanZoomController

PanZoomController org.mozilla.gecko.gfx.GeckoLayerClient.mPanZoomController
private

◆ mRootLayer

ComposedTileLayer org.mozilla.gecko.gfx.GeckoLayerClient.mRootLayer
private

◆ mScreenSize

IntSize org.mozilla.gecko.gfx.GeckoLayerClient.mScreenSize
private

◆ mView

LayerView org.mozilla.gecko.gfx.GeckoLayerClient.mView
private

◆ mViewportMetrics

volatile ImmutableViewportMetrics org.mozilla.gecko.gfx.GeckoLayerClient.mViewportMetrics
private

◆ mZoomConstraints

ZoomConstraints org.mozilla.gecko.gfx.GeckoLayerClient.mZoomConstraints
private

The documentation for this class was generated from the following file: