WXViewWrapper$6.smali

.class Lio/dcloud/feature/weex/WXViewWrapper$6;
.super Ljava/lang/Object;
.source "WXViewWrapper.java"

# interfaces
.implements Lcom/taobao/weex/ui/view/WXScrollView$WXScrollViewListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lio/dcloud/feature/weex/WXViewWrapper;->addScrollListener(Lcom/taobao/weex/WXSDKInstance$OnInstanceVisibleListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lio/dcloud/feature/weex/WXViewWrapper;

.field final synthetic val$finalTitleNView:Lorg/json/JSONObject;

.field final synthetic val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;


# direct methods
.method constructor <init>(Lio/dcloud/feature/weex/WXViewWrapper;Lio/dcloud/common/adapter/ui/AdaFrameView;Lorg/json/JSONObject;)V
    .registers 4
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x8010,
            0x1010,
            0x1010
        }
        names = {
            "this$0",
            "val$frame",
            "val$finalTitleNView"
        }
    .end annotation

    .line 433
    iput-object p1, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->this$0:Lio/dcloud/feature/weex/WXViewWrapper;

    iput-object p2, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;

    iput-object p3, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$finalTitleNView:Lorg/json/JSONObject;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Lcom/taobao/weex/ui/view/WXScrollView;II)V
    .registers 4
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0,
            0x0,
            0x0
        }
        names = {
            "scrollView",
            "x",
            "y"
        }
    .end annotation

    return-void
.end method

.method public onScrollChanged(Lcom/taobao/weex/ui/view/WXScrollView;IIII)V
    .registers 7
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0,
            0x0,
            0x0,
            0x0,
            0x0
        }
        names = {
            "scrollView",
            "x",
            "t",
            "oldx",
            "oldt"
        }
    .end annotation

    .line 436
    iget-object p1, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;

    if-eqz p1, :cond_3d

    iget-object p2, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$finalTitleNView:Lorg/json/JSONObject;

    if-nez p2, :cond_9

    goto :goto_3d

    .line 437
    :cond_9
    invoke-virtual {p1}, Lio/dcloud/common/adapter/ui/AdaFrameView;->obtainFrameOptions()Lio/dcloud/common/adapter/util/ViewOptions;

    move-result-object p1

    iget p1, p1, Lio/dcloud/common/adapter/util/ViewOptions;->coverage:I

    if-ge p1, p5, :cond_14

    if-ge p1, p3, :cond_14

    return-void

    .line 441
    :cond_14
    iget-object p2, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;

    invoke-virtual {p2}, Lio/dcloud/common/adapter/ui/AdaFrameView;->obtainWindowMgr()Lio/dcloud/common/DHInterface/AbsMgr;

    move-result-object p2

    iget-object p4, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;

    invoke-virtual {p4}, Lio/dcloud/common/adapter/ui/AdaFrameView;->obtainWebView()Lio/dcloud/common/DHInterface/IWebview;

    move-result-object p4

    iget-object p5, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;

    invoke-static {p5}, Lio/dcloud/common/util/TitleNViewUtil;->getTitleNViewId(Lio/dcloud/common/DHInterface/IFrameView;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, p4, p5, v0}, Lio/dcloud/common/util/TitleNViewUtil;->getTitleNView(Lio/dcloud/common/DHInterface/AbsMgr;Lio/dcloud/common/DHInterface/IWebview;Lio/dcloud/common/DHInterface/IFrameView;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p2

    .line 442
    instance-of p4, p2, Lio/dcloud/common/DHInterface/ITitleNView;

    if-eqz p4, :cond_3d

    .line 443
    check-cast p2, Lio/dcloud/common/DHInterface/ITitleNView;

    iget-object p4, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$frame:Lio/dcloud/common/adapter/ui/AdaFrameView;

    invoke-virtual {p4}, Lio/dcloud/common/adapter/ui/AdaFrameView;->obtainWebView()Lio/dcloud/common/DHInterface/IWebview;

    move-result-object p4

    int-to-float p3, p3

    iget-object p5, p0, Lio/dcloud/feature/weex/WXViewWrapper$6;->val$finalTitleNView:Lorg/json/JSONObject;

    int-to-float p1, p1

    invoke-static {p2, p4, p3, p5, p1}, Lio/dcloud/common/util/TitleNViewUtil;->updateTitleNViewStatus(Lio/dcloud/common/DHInterface/ITitleNView;Lio/dcloud/common/DHInterface/IWebview;FLorg/json/JSONObject;F)V

    :cond_3d
    :goto_3d
    return-void
.end method

.method public onScrollStopped(Lcom/taobao/weex/ui/view/WXScrollView;II)V
    .registers 4
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0,
            0x0,
            0x0
        }
        names = {
            "scrollView",
            "x",
            "y"
        }
    .end annotation

    return-void
.end method

.method public onScrollToBottom(Lcom/taobao/weex/ui/view/WXScrollView;II)V
    .registers 4
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0,
            0x0,
            0x0
        }
        names = {
            "scrollView",
            "x",
            "y"
        }
    .end annotation

    return-void
.end method