Package org.waveprotocol.wave.client.common.util

Examples of org.waveprotocol.wave.client.common.util.OffsetPosition


  public OffsetPosition getFocusPosition() {
    final JsTextRangeIE textRange = JsSelectionIE.get().createRange();
    if (textRange == null) {
      return null;
    } else {
      return new OffsetPosition(textRange.getOffsetLeft(), textRange.getOffsetTop(), null);
    }
  }
View Full Code Here


    this.enabled = enabled;
  }

  @Override
  public void onUpdate(EditorUpdateEvent event) {
    OffsetPosition p = NativeSelectionUtil.slowGetPosition();
    if (p != null) {
      EditorStaticDeps.logger.trace().log("x: " + p.left + "y: " + p.top);

      if (p.offsetParent == null) {
        // If offsetParent is null, interpret offsetX and offsetY as
View Full Code Here

TOP

Related Classes of org.waveprotocol.wave.client.common.util.OffsetPosition

Copyright © 2018 www.massapicom. 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.