Examples of Extent


Examples of org.vmmagic.unboxed.Extent

        // Claim the available heap region as resource.
        try {
            final ResourceManager rm = InitialNaming.lookup(ResourceManager.NAME);
            final Address start = Memory.AVAILABLE_START();
            final Extent size = Memory.AVAILABLE_END().toWord().sub(start.toWord()).toExtent();
            heapResource = rm.claimMemoryResource(ResourceOwner.SYSTEM, start,
                    size, ResourceManager.MEMMODE_NORMAL);
        } catch (NameNotFoundException ex) {
            BootLogInstance.get().fatal("Cannot find resource manager", ex);
        } catch (ResourceNotFreeException ex) {
View Full Code Here

Examples of org.waveprotocol.wave.client.scroll.Extent

      // The fast path failed. Try a more invasive method. This query does
      // mutate the DOM, so the subsequent measurement queries will force
      // synchronous layout, which can be slow.
      OffsetPosition p = NativeSelectionUtil.slowGetPosition();
      if (p != null && p.offsetParent != null) {
        Extent viewportInContent = scroller.getViewport();
        double focusInViewport = measurer.top(viewport, p.offsetParent) + p.top;
        double focusInContent = focusInViewport + viewportInContent.getStart();
        if (focusInContent - PAD_PX < viewportInContent.getStart()) {
          scroller.moveTo(focusInContent - PAD_PX);
        } else if (focusInContent + PAD_PX > viewportInContent.getEnd()) {
          scroller.moveTo(focusInContent + PAD_PX - viewportInContent.getSize());
        } else {
          // All ok.
          return;
        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.