jfxrt

  log.log(Level.FINE, "Get zoom factor, textOnly=" + paramBoolean);
      if (isDisposed)
      {
        log.log(Level.FINE, "getZoomFactor() request for a disposed web page.");
        float f1 = 1.0F;
        return f1;
      }
      long l = getMainFrame();
      if (!frames.contains(Long.valueOf(l)))
      {
        f2 = 1.0F;
        return f2;
      }
      float f2 = twkGetZoomFactor(l, paramBoolean);
      return f2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setZoomFactor(float paramFloat, boolean paramBoolean)
  {
    lockPage();
    try
    {
      log.fine(String.format("Set zoom factor %.2f, textOnly=%b", new Object[] { Float.valueOf(paramFloat), Boolean.valueOf(paramBoolean) }));
      if (isDisposed)
      {
        log.log(Level.FINE, "setZoomFactor() request for a disposed web page.");
        return;
      }
      long l = getMainFrame();
      if ((l == 0L) || (!frames.contains(Long.valueOf(l)))) {
        return;
      }
      twkSetZoomFactor(l, paramFloat, paramBoolean);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setFontSmoothingType(int paramInt)
  {
    fontSmoothingType = paramInt;
    repaintAll();
  }
  
  public void reset(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Reset: frame = " + paramLong);
      if (isDisposed)
      {
        log.log(Level.FINE, "reset() request for a disposed web page.");
        return;
      }
      if ((paramLong == 0L) || (!frames.contains(Long.valueOf(paramLong)))) {
        return;
      }
      twkReset(paramLong);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public Object executeScript(long paramLong, String paramString)
    throws JSException
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "execute script: \"" + paramString + "\" in frame = " + paramLong);
      if (isDisposed)
      {
        log.log(Level.FINE, "executeScript() request for a disposed web page.");
        localObject1 = null;
        return localObject1;
      }
      if ((paramLong == 0L) || (!frames.contains(Long.valueOf(paramLong))))
      {
        localObject1 = null;
        return localObject1;
      }
      Object localObject1 = twkExecuteScript(paramLong, paramString);
      return localObject1;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public long getMainFrame()
  {
    lockPage();
    try
    {
      log.log(Level.FINER, "getMainFrame: page = " + pPage);
      if (isDisposed)
      {
        log.log(Level.FINE, "getMainFrame() request for a disposed web page.");
        l1 = 0L;
        return l1;
      }
      long l1 = twkGetMainFrame(getPage());
      log.log(Level.FINER, "Main frame = " + l1);
      frames.add(Long.valueOf(l1));
      long l2 = l1;
      return l2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public long getParentFrame(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "getParentFrame: child = " + paramLong);
      if (isDisposed)
      {
        log.log(Level.FINE, "getParentFrame() request for a disposed web page.");
        l = 0L;
        return l;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        l = 0L;
        return l;
      }
      long l = twkGetParentFrame(paramLong);
      return l;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public List<Long> getChildFrames(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "getChildFrames: parent = " + paramLong);
      if (isDisposed)
      {
        log.log(Level.FINE, "getChildFrames() request for a disposed web page.");
        localObject1 = null;
        return (List<Long>)localObject1;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        localObject1 = null;
        return (List<Long>)localObject1;
      }
      Object localObject1 = twkGetChildFrames(paramLong);
      LinkedList localLinkedList = new LinkedList();
      for (long l : localObject1) {
        localLinkedList.add(Long.valueOf(l));
      }
      ??? = localLinkedList;
      return (List<Long>)???;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public WCRectangle getVisibleRect(long paramLong)
  {
    lockPage();
    try
    {
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        localObject1 = null;
        return (WCRectangle)localObject1;
      }
      Object localObject1 = twkGetVisibleRect(paramLong);
      if (localObject1 != null)
      {
        localWCRectangle = new WCRectangle(localObject1[0], localObject1[1], localObject1[2], localObject1[3]);
        return localWCRectangle;
      }
      WCRectangle localWCRectangle = null;
      return localWCRectangle;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void scrollToPosition(long paramLong, WCPoint paramWCPoint)
  {
    lockPage();
    try
    {
      if (!frames.contains(Long.valueOf(paramLong))) {
        return;
      }
      twkScrollToPosition(paramLong, paramWCPoint.getIntX(), paramWCPoint.getIntY());
    }
    finally
    {
      unlockPage();
    }
  }
  
  public WCSize getContentSize(long paramLong)
  {
    lockPage();
    try
    {
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        localObject1 = null;
        return (WCSize)localObject1;
      }
      Object localObject1 = twkGetContentSize(paramLong);
      if (localObject1 != null)
      {
        localWCSize = new WCSize(localObject1[0], localObject1[1]);
        return localWCSize;
      }
      WCSize localWCSize = null;
      return localWCSize;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public Document getDocument(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "getDocument");
      if (isDisposed)
      {
        log.log(Level.FINE, "getDocument() request for a disposed web page.");
        localDocument = null;
        return localDocument;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        localDocument = null;
        return localDocument;
      }
      Document localDocument = twkGetDocument(paramLong);
      return localDocument;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public Element getOwnerElement(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "getOwnerElement");
      if (isDisposed)
      {
        log.log(Level.FINE, "getOwnerElement() request for a disposed web page.");
        localElement = null;
        return localElement;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        localElement = null;
        return localElement;
      }
      Element localElement = twkGetOwnerElement(paramLong);
      return localElement;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean executeCommand(String paramString1, String paramString2)
  {
    lockPage();
    try
    {
      if (log.isLoggable(Level.FINE)) {
        log.log(Level.FINE, "command: [{0}], value: [{1}]", new Object[] { paramString1, paramString2 });
      }
      if (isDisposed)
      {
        log.log(Level.FINE, "Web page is already disposed");
        bool1 = false;
        return bool1;
      }
      boolean bool1 = twkExecuteCommand(getPage(), paramString1, paramString2);
      log.log(Level.FINE, "result: [{0}]", Boolean.valueOf(bool1));
      boolean bool2 = bool1;
      return bool2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean queryCommandEnabled(String paramString)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "command: [{0}]", paramString);
      if (isDisposed)
      {
        log.log(Level.FINE, "Web page is already disposed");
        bool1 = false;
        return bool1;
      }
      boolean bool1 = twkQueryCommandEnabled(getPage(), paramString);
      log.log(Level.FINE, "result: [{0}]", Boolean.valueOf(bool1));
      boolean bool2 = bool1;
      return bool2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean queryCommandState(String paramString)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "command: [{0}]", paramString);
      if (isDisposed)
      {
        log.log(Level.FINE, "Web page is already disposed");
        bool1 = false;
        return bool1;
      }
      boolean bool1 = twkQueryCommandState(getPage(), paramString);
      log.log(Level.FINE, "result: [{0}]", Boolean.valueOf(bool1));
      boolean bool2 = bool1;
      return bool2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public String queryCommandValue(String paramString)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "command: [{0}]", paramString);
      if (isDisposed)
      {
        log.log(Level.FINE, "Web page is already disposed");
        str1 = null;
        return str1;
      }
      String str1 = twkQueryCommandValue(getPage(), paramString);
      log.log(Level.FINE, "result: [{0}]", str1);
      String str2 = str1;
      return str2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean isEditable()
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "isEditable");
      if (isDisposed)
      {
        log.log(Level.FINE, "isEditable() request for a disposed web page.");
        bool = false;
        return bool;
      }
      boolean bool = twkIsEditable(getPage());
      return bool;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setEditable(boolean paramBoolean)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "setEditable");
      if (isDisposed)
      {
        log.log(Level.FINE, "setEditable() request for a disposed web page.");
        return;
      }
      twkSetEditable(getPage(), paramBoolean);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public String getHtml(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "getHtml");
      if (isDisposed)
      {
        log.log(Level.FINE, "getHtml() request for a disposed web page.");
        str = null;
        return str;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        str = null;
        return str;
      }
      String str = twkGetHtml(paramLong);
      return str;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public int startPrinting(long paramLong, float paramFloat, boolean paramBoolean)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Start printing: width=" + paramFloat + ", scale=" + paramBoolean);
      if (isDisposed)
      {
        log.log(Level.FINE, "startPrinting() request for a disposed web page.");
        i = 0;
        return i;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        i = 0;
        return i;
      }
      int i = twkStartPrinting(paramLong, paramFloat, paramBoolean);
      log.log(Level.FINE, "Preferred width = " + i);
      int j = i;
      return j;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void endPrinting(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "End printing");
      if (isDisposed)
      {
        log.log(Level.FINE, "endPrinting() request for a disposed web page.");
        return;
      }
      if (!frames.contains(Long.valueOf(paramLong))) {
        return;
      }
      twkEndPrinting(paramLong);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public int getPageHeight()
  {
    return getFrameHeight(getMainFrame());
  }
  
  public int getFrameHeight(long paramLong)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Get page height");
      if (isDisposed)
      {
        log.log(Level.FINE, "getFrameHeight() request for a disposed web page.");
        i = 0;
        return i;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        i = 0;
        return i;
      }
      int i = twkGetFrameHeight(paramLong);
      log.log(Level.FINE, "Height = " + i);
      int j = i;
      return j;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public float adjustFrameHeight(long paramLong, float paramFloat1, float paramFloat2, float paramFloat3)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Adjust page height");
      if (isDisposed)
      {
        log.log(Level.FINE, "adjustFrameHeight() request for a disposed web page.");
        f = 0.0F;
        return f;
      }
      if (!frames.contains(Long.valueOf(paramLong)))
      {
        f = 0.0F;
        return f;
      }
      float f = twkAdjustFrameHeight(paramLong, paramFloat1, paramFloat2, paramFloat3);
      return f;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean getUsePageCache()
  {
    lockPage();
    try
    {
      boolean bool = twkGetUsePageCache(getPage());
      return bool;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setUsePageCache(boolean paramBoolean)
  {
    lockPage();
    try
    {
      twkSetUsePageCache(getPage(), paramBoolean);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean getDeveloperExtrasEnabled()
  {
    lockPage();
    try
    {
      boolean bool1 = twkGetDeveloperExtrasEnabled(getPage());
      log.log(Level.FINE, "Getting developerExtrasEnabled, result: [{0}]", Boolean.valueOf(bool1));
      boolean bool2 = bool1;
      return bool2;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setDeveloperExtrasEnabled(boolean paramBoolean)
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Setting developerExtrasEnabled, value: [{0}]", Boolean.valueOf(paramBoolean));
      twkSetDeveloperExtrasEnabled(getPage(), paramBoolean);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean isJavaScriptEnabled()
  {
    lockPage();
    try
    {
      boolean bool = twkIsJavaScriptEnabled(getPage());
      return bool;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setJavaScriptEnabled(boolean paramBoolean)
  {
    lockPage();
    try
    {
      twkSetJavaScriptEnabled(getPage(), paramBoolean);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public boolean isContextMenuEnabled()
  {
    lockPage();
    try
    {
      boolean bool = twkIsContextMenuEnabled(getPage());
      return bool;
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setContextMenuEnabled(boolean paramBoolean)
  {
    lockPage();
    try
    {
      twkSetContextMenuEnabled(getPage(), paramBoolean);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void setUserStyleSheetLocation(String paramString)
  {
    lockPage();
    try
    {
      twkSetUserStyleSheetLocation(getPage(), paramString);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void connectInspectorFrontend()
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Connecting inspector frontend");
      twkConnectInspectorFrontend(getPage());
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void disconnectInspectorFrontend()
  {
    lockPage();
    try
    {
      log.log(Level.FINE, "Disconnecting inspector frontend");
      twkDisconnectInspectorFrontend(getPage());
    }
    finally
    {
      unlockPage();
    }
  }
  
  public void dispatchInspectorMessageFromFrontend(String paramString)
  {
    lockPage();
    try
    {
      if (log.isLoggable(Level.FINE)) {
        log.log(Level.FINE, "Dispatching inspector message from frontend, message: [{0}]", paramString);
      }
      twkDispatchInspectorMessageFromFrontend(getPage(), paramString);
    }
    finally
    {
      unlockPage();
    }
  }
  
  public InspectorClient getInspectorClient()
  {
    return inspectorClient;
  }
  
  public void setInspectorClient(InspectorClient paramInspectorClient)
  {
    inspectorClient = paramInspectorClient;
  }
  
  private void fwkFrameCreated(long paramLong)
  {
    log.log(Level.FINE, "Frame created: frame = " + paramLong);
    if (frames.contains(Long.valueOf(paramLong)))
    {
      log.log(Level.FINE, "Error in fwkFrameCreated: frame is already in frames");
      return;
    }
    frames.add(Long.valueOf(paramLong));
  }
  
  private void fwkFrameDestroyed(long paramLong)
  {
    log.log(Level.FINE, "Frame destroyed: frame = " + paramLong);
    if (!frames.contains(Long.valueOf(paramLong)))
    {
      log.log(Level.FINE, "Error in fwkFrameDestroyed: frame is not found in frames");
      return;
    }
    frames.remove(Long.valueOf(paramLong));
  }
  
  private void fwkRepaint(int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean1, boolean paramBoolean2)
  {
    lockPage();
    try
    {
      if (log.isLoggable(Level.FINEST)) {
        paintLog.finest("fwkRepaint: " + paramInt1 + " " + paramInt2 + " " + paramInt3 + " " + paramInt4);
      }
      if (pageClient != null)
      {
        addDirtyRect(new WCRectangle(paramInt1, paramInt2, paramInt3, paramInt4));
        pageClient.repaint(paramInt1, paramInt2, paramInt3, paramInt4, paramBoolean1, paramBoolean2);
      }
    }
    finally
    {
      unlockPage();
    }
  }
  
  private void fwkScroll(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  {
    if (log.isLoggable(Level.FINEST)) {
      paintLog.finest("Scroll: " + paramInt1 + " " + paramInt2 + " " + paramInt3 + " " + paramInt4 + "  " + paramInt5 + " " + paramInt6);
    }
    if ((pageClient == null) || (!pageClient.isBackBufferSupported()))
    {
      paintLog.finest("blit scrolling is switched off");
      return;
    }
    scrollRequests.add(new ScrollRequest(paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6));
    pageClient.repaint(paramInt1, paramInt2, paramInt3, paramInt4, true, true);
  }
  
  private void fwkTransferFocus(boolean paramBoolean)
  {
    log.log(Level.FINER, "Transfer focus " + (paramBoolean ? "forward" : "backward"));
    if (pageClient != null) {
      pageClient.transferFocus(paramBoolean);
    }
  }
  
  private void fwkSetCursor(long paramLong)
  {
    log.log(Level.FINER, "Set cursor: " + paramLong);
    if (pageClient != null) {
      pageClient.setCursor(paramLong);
    }
  }
  
  private void fwkSetFocus(boolean paramBoolean)
  {
    log.log(Level.FINER, "Set focus: " + (paramBoolean ? "true" : "false"));
    if (pageClient != null) {
      pageClient.setFocus(paramBoolean);
    }
  }
  
  private void fwkSetTooltip(String paramString)
  {
    log.log(Level.FINER, "Set tooltip: " + paramString);
    if (pageClient != null) {
      pageClient.setTooltip(paramString);
    }
  }
  
  private void fwkPrint()
  {
    log.log(Level.FINER, "Print");
    if (uiClient != null) {
      uiClient.print();
    }
  }
  
  private void fwkSetRequestURL(long paramLong, int paramInt, String paramString)
  {
    log.log(Level.FINER, "Set request URL: id = " + paramInt + ", url = " + paramString);
    synchronized (requestURLs)
    {
      requestURLs.put(Integer.valueOf(paramInt), paramString);
    }
  }
  
  private void fwkRemoveRequestURL(long paramLong, int paramInt)
  {
    log.log(Level.FINER, "Set request URL: id = " + paramInt);
    synchronized (requestURLs)
    {
      requestURLs.remove(Integer.valueOf(paramInt));
      requestStarted.remove(Integer.valueOf(paramInt));
    }
  }
  
  private WebPage fwkCreateWindow(boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4)
  {
    log.log(Level.FINER, "Create window");
    if (uiClient != null) {
      return uiClient.createPage(paramBoolean1, paramBoolean2, paramBoolean3, paramBoolean4);
    }
    return null;
  }
  
  private void fwkShowWindow()
  {
    log.log(Level.FINER, "Show window");
    if (uiClient != null) {
      uiClient.showView();
    }
  }
  
  private void fwkCloseWindow()
  {
    log.log(Level.FINER, "Close window");
    if ((permitCloseWindowAction()) && (uiClient != null)) {
      uiClient.closePage();
    }
  }
  
  private WCRectangle fwkGetWindowBounds()
  {
    log.log(Level.FINE, "Get window bounds");
    if (uiClient != null)
    {
      WCRectangle localWCRectangle = uiClient.getViewBounds();
      if (localWCRectangle != null) {
        return localWCRectangle;
      }
    }
    return fwkGetPageBounds();
  }
  
  private void fwkSetWindowBounds(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  {
    log.log(Level.FINER, "Set window bounds: " + paramInt1 + " " + paramInt2 + " " + paramInt3 + " " + paramInt4);
    if (uiClient != null) {
      uiClient.setViewBounds(new WCRectangle(paramInt1, paramInt2, paramInt3, paramInt4));
    }
  }
  
  private WCRectangle fwkGetPageBounds()
  {
    log.log(Level.FINER, "Get page bounds");
    return new WCRectangle(0.0F, 0.0F, width, height);
  }
  
  private void fwkSetScrollbarsVisible(boolean paramBoolean) {}
  
  private void fwkSetStatusbarText(String paramString)
  {
    log.log(Level.FINER, "Set statusbar text: " + paramString);
    if (uiClient != null) {
      uiClient.setStatusbarText(paramString);
    }
  }
  
  private String fwkChooseFile(String paramString)
  {
    log.log(Level.FINER, "Choose file, initial=" + paramString);
    return uiClient != null ? uiClient.chooseFile(paramString) : null;
  }
  
  private void fwkStartDrag(WCImage paramWCImage, int paramInt1, int paramInt2, int paramInt3, int paramInt4, String[] paramArrayOfString, Object[] paramArrayOfObject)
  {
    log.log(Level.FINER, "Start drag: ");
    if (uiClient != null) {
      uiClient.startDrag(paramWCImage, paramInt1, paramInt2, paramInt3, paramInt4, paramArrayOfString, paramArrayOfObject);
    }
  }
  
  private WCPoint fwkScreenToWindow(WCPoint paramWCPoint)
  {
    log.log(Level.FINER, "fwkScreenToWindow");
    if (pageClient != null) {
      return pageClient.screenToWindow(paramWCPoint);
    }
    return paramWCPoint;
  }
  
  private WCPoint fwkWindowToScreen(WCPoint paramWCPoint)
  {
    log.log(Level.FINER, "fwkWindowToScreen");
    if (pageClient != null) {
      return pageClient.windowToScreen(paramWCPoint);
    }
    return paramWCPoint;
  }
  
  private void fwkAlert(String paramString)
  {
    log.log(Level.FINE, "JavaScript alert(): text = " + paramString);
    if (uiClient != null) {
      uiClient.alert(paramString);
    }
  }
  
  private boolean fwkConfirm(String paramString)
  {
    log.log(Level.FINE, "JavaScript confirm(): text = " + paramString);
    if (uiClient != null) {
      return uiClient.confirm(paramString);
    }
    return false;
  }
  
  private String fwkPrompt(String paramString1, String paramString2)
  {
    log.log(Level.FINE, "JavaScript prompt(): text = " + paramString1 + ", default = " + paramString2);
    if (uiClient != null) {
      return uiClient.prompt(paramString1, paramString2);
    }
    return null;
  }
  
  private void fwkAddMessageToConsole(String paramString1, int paramInt, String paramString2)
  {
    log.log(Level.FINE, "fwkAddMessageToConsole(): message = " + paramString1 + ", lineNumber = " + paramInt + ", sourceId = " + paramString2);
    addMessageToConsole(paramString1, paramInt, paramString2);
  }
  
  protected void addMessageToConsole(String paramString1, int paramInt, String paramString2) {}
  
  private void fwkFireLoadEvent(long paramLong, int paramInt1, String paramString1, String paramString2, double paramDouble, int paramInt2)
  {
    log.log(Level.FINER, "Load event: pFrame = " + paramLong + ", state = " + paramInt1 + ", url = " + paramString1 + ", contenttype=" + paramString2 + ", progress = " + paramDouble + ", error = " + paramInt2);
    fireLoadEvent(paramLong, paramInt1, paramString1, paramString2, paramDouble, paramInt2);
  }
  
  private void fwkFireResourceLoadEvent(long paramLong, int paramInt1, int paramInt2, String paramString, double paramDouble, int paramInt3)
  {
    log.log(Level.FINER, "Resource load event: pFrame = " + paramLong + ", state = " + paramInt1 + ", id = " + paramInt2 + ", contenttype=" + paramString + ", progress = " + paramDouble + ", error = " + paramInt3);
    String str = (String)requestURLs.get(Integer.valueOf(paramInt2));
    if (str == null)
    {
      log.log(Level.FINE, "Error in fwkFireResourceLoadEvent: unknown request id " + paramInt2);
      return;
    }
    int i = paramInt1;
    if (paramInt1 == 20) {
      if (requestStarted.contains(Integer.valueOf(paramInt2))) {
        i = 21;
      } else {
        requestStarted.add(Integer.valueOf(paramInt2));
      }
    }
    fireResourceLoadEvent(paramLong, i, str, paramString, paramDouble, paramInt3);
  }
  
  private boolean fwkPermitNavigateAction(long paramLong, String paramString)
  {
    log.log(Level.FINE, "Policy: permit NAVIGATE: pFrame = " + paramLong + ", url = " + paramString);
    if (policyClient != null) {
      return policyClient.permitNavigateAction(paramLong, str2url(paramString));
    }
    return true;
  }
  
  private boolean fwkPermitRedirectAction(long paramLong, String paramString)
  {
    log.log(Level.FINE, "Policy: permit REDIRECT: pFrame = " + paramLong + ", url = " + paramString);
    if (policyClient != null) {
      return policyClient.permitRedirectAction(paramLong, str2url(paramString));
    }
    return true;
  }
  
  private boolean fwkPermitAcceptResourceAction(long paramLong, String paramString)
  {
    log.log(Level.FINE, "Policy: permit ACCEPT_RESOURCE: pFrame + " + paramLong + ", url = " + paramString);
    if (policyClient != null) {
      return policyClient.permitAcceptResourceAction(paramLong, str2url(paramString));
    }
    return true;
  }
  
  private boolean fwkPermitSubmitDataAction(long paramLong, String paramString1, String paramString2, boolean paramBoolean)
  {
    log.log(Level.FINE, "Policy: permit " + (paramBoolean ? "" : "RE") + "SUBMIT_DATA: pFrame = " + paramLong + ", url = " + paramString1 + ", httpMethod = " + paramString2);
    if (policyClient != null)
    {
      if (paramBoolean) {
        return policyClient.permitSubmitDataAction(paramLong, str2url(paramString1), paramString2);
      }
      return policyClient.permitResubmitDataAction(paramLong, str2url(paramString1), paramString2);
    }
    return true;
  }
  
  private boolean fwkPermitEnableScriptsAction(long paramLong, String paramString)
  {
    log.log(Level.FINE, "Policy: permit ENABLE_SCRIPTS: pFrame + " + paramLong + ", url = " + paramString);
    if (policyClient != null) {
      return policyClient.permitEnableScriptsAction(paramLong, str2url(paramString));
    }
    return true;
  }
  
  private boolean fwkPermitNewWindowAction(long paramLong, String paramString)
  {
    log.log(Level.FINE, "Policy: permit NEW_PAGE: pFrame = " + paramLong + ", url = " + paramString);
    if (policyClient != null) {
      return policyClient.permitNewPageAction(paramLong, str2url(paramString));
    }
    return true;
  }
  
  private boolean permitCloseWindowAction()
  {
    log.log(Level.FINE, "Policy: permit CLOSE_PAGE");
    if (policyClient != null) {
      return policyClient.permitClosePageAction(getMainFrame());
    }
    return true;
  }
  
  private void fwkRepaintAll()
  {
    log.log(Level.FINE, "Repainting the entire page");
    repaintAll();
  }
  
  private boolean fwkSendInspectorMessageToFrontend(String paramString)
  {
    if (log.isLoggable(Level.FINE)) {
      log.log(Level.FINE, "Sending inspector message to frontend, message: [{0}]", paramString);
    }
    boolean bool = false;
    if (inspectorClient != null)
    {
      log.log(Level.FINE, "Invoking inspector client");
      bool = inspectorClient.sendMessageToFrontend(paramString);
    }
    if (log.isLoggable(Level.FINE)) {
      log.log(Level.FINE, "Result: [{0}]", Boolean.valueOf(bool));
    }
    return bool;
  }
  
  private void fwkDidClearWindowObject(long paramLong1, long paramLong2)
  {
    didClearWindowObject(paramLong1, paramLong2);
  }
  
  protected void didClearWindowObject(long paramLong1, long paramLong2) {}
  
  private URL str2url(String paramString)
  {
    try
    {
      return URLs.newURL(paramString);
    }
    catch (MalformedURLException localMalformedURLException)
    {
      log.log(Level.FINE, "Exception while converting \"" + paramString + "\" to URL", localMalformedURLException);
    }
    return null;
  }
  
  private void fireLoadEvent(long paramLong, int paramInt1, String paramString1, String paramString2, double paramDouble, int paramInt2)
  {
    Iterator localIterator = loadListenerClients.iterator();
    while (localIterator.hasNext())
    {
      LoadListenerClient localLoadListenerClient = (LoadListenerClient)localIterator.next();
      localLoadListenerClient.dispatchLoadEvent(paramLong, paramInt1, paramString1, paramString2, paramDouble, paramInt2);
    }
  }
  
  private void fireResourceLoadEvent(long paramLong, int paramInt1, String paramString1, String paramString2, double paramDouble, int paramInt2)
  {
    Iterator localIterator = loadListenerClients.iterator();
    while (localIterator.hasNext())
    {
      LoadListenerClient localLoadListenerClient = (LoadListenerClient)localIterator.next();
      localLoadListenerClient.dispatchResourceLoadEvent(paramLong, paramInt1, paramString1, paramString2, paramDouble, paramInt2);
    }
  }
  
  private void repaintAll()
  {
    if (pageClient != null)
    {
      markDirty();
      pageClient.repaint(0, 0, width, height, true, false);
    }
  }
  
  private native long twkCreatePage(boolean paramBoolean);
  
  private native void twkInit(long paramLong, boolean paramBoolean);
  
  private native void twkDestroyPage(long paramLong);
  
  private native long twkGetMainFrame(long paramLong);
  
  private native long twkGetParentFrame(long paramLong);
  
  private native long[] twkGetChildFrames(long paramLong);
  
  private native String twkGetName(long paramLong);
  
  private native String twkGetURL(long paramLong);
  
  private native String twkGetInnerText(long paramLong);
  
  private native String twkGetRenderTree(long paramLong);
  
  private native String twkGetContentType(long paramLong);
  
  private native String twkGetTitle(long paramLong);
  
  private native String twkGetIconURL(long paramLong);
  
  private static native Document twkGetDocument(long paramLong);
  
  private static native Element twkGetOwnerElement(long paramLong);
  
  private native void twkOpen(long paramLong, String paramString);
  
  private native void twkLoad(long paramLong, String paramString1, String paramString2);
  
  private native void twkStop(long paramLong);
  
  private native void twkStopAll(long paramLong);
  
  private native void twkRefresh(long paramLong);
  
  private native boolean twkGoBackForward(long paramLong, int paramInt);
  
  private native boolean twkCopy(long paramLong);
  
  private native boolean twkFindInPage(long paramLong, String paramString, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3);
  
  private native boolean twkFindInFrame(long paramLong, String paramString, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3);
  
  private native float twkGetZoomFactor(long paramLong, boolean paramBoolean);
  
  private native void twkSetZoomFactor(long paramLong, float paramFloat, boolean paramBoolean);
  
  private native Object twkExecuteScript(long paramLong, String paramString);
  
  private native void twkReset(long paramLong);
  
  private native int twkGetFrameHeight(long paramLong);
  
  private native int twkStartPrinting(long paramLong, float paramFloat, boolean paramBoolean);
  
  private native void twkEndPrinting(long paramLong);
  
  private native float twkAdjustFrameHeight(long paramLong, float paramFloat1, float paramFloat2, float paramFloat3);
  
  private native int[] twkGetVisibleRect(long paramLong);
  
  private native void twkScrollToPosition(long paramLong, int paramInt1, int paramInt2);
  
  private native int[] twkGetContentSize(long paramLong);
  
  private native void twkSetTransparent(long paramLong, boolean paramBoolean);
  
  private native void twkSetBackgroundColor(long paramLong, int paramInt);
  
  private native void twkSetBounds(long paramLong, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
  
  private native void twkPrint(long paramLong, WCGraphicsContext paramWCGraphicsContext, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
  
  private native void twkUpdateContent(long paramLong, WCRenderQueue paramWCRenderQueue, int paramInt1, int paramInt2, int paramInt3, int paramInt4);
  
  private native void twkDrawHighlight(long paramLong, WCRenderQueue paramWCRenderQueue);
  
  private native String twkGetEncoding(long paramLong);
  
  private native void twkSetEncoding(long paramLong, String paramString);
  
  private native void twkProcessFocusEvent(long paramLong, int paramInt1, int paramInt2);
  
  private native boolean twkProcessKeyEvent(long paramLong, int paramInt1, String paramString1, String paramString2, int paramInt2, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4);
  
  private native boolean twkProcessMouseEvent(long paramLong, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, int paramInt7, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4, boolean paramBoolean5, float paramFloat);
  
  private native boolean twkProcessMouseWheelEvent(long paramLong, int paramInt1, int paramInt2, int paramInt3, int paramInt4, float paramFloat1, float paramFloat2, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4, float paramFloat3);
  
  private native boolean twkProcessTouchEvent(long paramLong, int paramInt, ByteBuffer paramByteBuffer, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4, float paramFloat);
  
  private native boolean twkProcessInputTextChange(long paramLong, String paramString1, String paramString2, int[] paramArrayOfInt, int paramInt);
  
  private native boolean twkProcessCaretPositionChange(long paramLong, int paramInt);
  
  private native int[] twkGetTextLocation(long paramLong, int paramInt);
  
  private native int twkGetInsertPositionOffset(long paramLong);
  
  private native int twkGetCommittedTextLength(long paramLong);
  
  private native String twkGetCommittedText(long paramLong);
  
  private native String twkGetSelectedText(long paramLong);
  
  private native int twkProcessDrag(long paramLong, int paramInt1, String[] paramArrayOfString1, String[] paramArrayOfString2, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6);
  
  private native boolean twkExecuteCommand(long paramLong, String paramString1, String paramString2);
  
  private native boolean twkQueryCommandEnabled(long paramLong, String paramString);
  
  private native boolean twkQueryCommandState(long paramLong, String paramString);
  
  private native String twkQueryCommandValue(long paramLong, String paramString);
  
  private native boolean twkIsEditable(long paramLong);
  
  private native void twkSetEditable(long paramLong, boolean paramBoolean);
  
  private native String twkGetHtml(long paramLong);
  
  private native boolean twkGetUsePageCache(long paramLong);
  
  private native void twkSetUsePageCache(long paramLong, boolean paramBoolean);
  
  private native boolean twkGetDeveloperExtrasEnabled(long paramLong);
  
  private native void twkSetDeveloperExtrasEnabled(long paramLong, boolean paramBoolean);
  
  private native boolean twkIsJavaScriptEnabled(long paramLong);
  
  private native void twkSetJavaScriptEnabled(long paramLong, boolean paramBoolean);
  
  private native boolean twkIsContextMenuEnabled(long paramLong);
  
  private native void twkSetContextMenuEnabled(long paramLong, boolean paramBoolean);
  
  private native void twkSetUserStyleSheetLocation(long paramLong, String paramString);
  
  private native int twkGetUnloadEventListenersCount(long paramLong);
  
  private native void twkConnectInspectorFrontend(long paramLong);
  
  private native void twkDisconnectInspectorFrontend(long paramLong);
  
  private native void twkDispatchInspectorMessageFromFrontend(long paramLong, String paramString);
  
  static
  {
    AccessController.doPrivileged(new PrivilegedAction()
    {
      public Void run()
      {
        String str1 = System.getProperty("os.name");
        String str2 = System.getProperty("os.arch");
        String str3 = null;
        if (str1.startsWith("Windows")) {
          str3 = "windows";
        } else if (str1.startsWith("Linux")) {
          str3 = "linux";
        } else if (str1.startsWith("SunOS")) {
          str3 = "solaris";
        }
        if (str3 != null)
        {
          String str4 = ConfigManager.getProperty(str3 + ".libs");
          if (str4 != null)
          {
            String[] arrayOfString1 = str4.split("\\s*,\\s*");
            try
            {
              WebPage.log.finer("loading " + str1 + " native libraries ...");
              for (String str5 : arrayOfString1)
              {
                NativeLibLoader.loadLibrary(str5);
                WebPage.log.finer(str5 + " loaded");
              }
            }
            catch (UnsatisfiedLinkError localUnsatisfiedLinkError)
            {
              WebPage.log.finer("Cannot load libraries that webkit depends on. So, trying to load WebKitJava relying on system library path.");
            }
          }
          else
          {
            WebPage.log.finer("No extra libraries to load.");
          }
        }
        else
        {
          WebPage.log.finer(str1 + " (" + str2 + ") is not supported. " + "Trying to load WebKitJava relying on " + "system library path.");
        }
        NativeLibLoader.loadLibrary("jfxwebkit");
        WebPage.log.finer("jfxwebkit loaded");
        return null;
      }
    });
    AccessController.doPrivileged(new PrivilegedAction()
    {
      public Void run()
      {
        if (CookieHandler.getDefault() == null)
        {
          boolean bool = Boolean.valueOf(System.getProperty("com.sun.webpane.setDefaultCookieHandler", "true")).booleanValue();
          if (bool) {
            CookieHandler.setDefault(new CookieManager());
          }
        }
        return null;
      }
    });
  }
  
  private static class ScrollRequest
  {
    int x;
    int y;
    int w;
    int h;
    int dx;
    int dy;
    
    ScrollRequest(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
    {
      x = paramInt1;
      y = paramInt2;
      w = paramInt3;
      h = paramInt4;
      dx = paramInt5;
      dy = paramInt6;
    }
  }
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.WebPage
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform;

import com.sun.webpane.platform.graphics.WCPageBackBuffer;
import com.sun.webpane.platform.graphics.WCPoint;
import com.sun.webpane.platform.graphics.WCRectangle;

public abstract interface WebPageClient<T>
{
  public abstract void repaint(int paramInt1, int paramInt2, int paramInt3, int paramInt4, boolean paramBoolean1, boolean paramBoolean2);
  
  public abstract void setCursor(long paramLong);
  
  public abstract void setFocus(boolean paramBoolean);
  
  public abstract void transferFocus(boolean paramBoolean);
  
  public abstract void setTooltip(String paramString);
  
  public abstract WCRectangle getScreenBounds(boolean paramBoolean);
  
  public abstract int getScreenDepth();
  
  public abstract WCPoint getLocationOnScreen();
  
  public abstract T getContainer();
  
  public abstract WCPoint screenToWindow(WCPoint paramWCPoint);
  
  public abstract WCPoint windowToScreen(WCPoint paramWCPoint);
  
  public abstract WCPageBackBuffer createBackBuffer();
  
  public abstract boolean isBackBufferSupported();
}

/* Location:
 * Qualified Name:     com.sun.webpane.platform.WebPageClient
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package com.sun.webpane.platform.event;

class KeyCodeMap$1 {}

/* Location:
 * Qualifi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd