Skip to content

Commit

Permalink
add missing DOMRect.java (returned by getBoundingClientRect)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcphers committed Jul 29, 2015
1 parent fa4f7b3 commit 64723d8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/gwt/src/org/rstudio/core/client/dom/DOMRect.java
@@ -0,0 +1,40 @@
/*
* DOMRect.java
*
* Copyright (C) 2009-15 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
* AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
*
*/
package org.rstudio.core.client.dom;

import com.google.gwt.core.client.JavaScriptObject;

public class DOMRect extends JavaScriptObject
{
protected DOMRect()
{
}

public final native int getLeft() /*-{
return this.left;
}-*/;

public final native int getRight() /*-{
return this.right;
}-*/;

public final native int getTop() /*-{
return this.top;
}-*/;

public final native int getBottom() /*-{
return this.bottom;
}-*/;
}

0 comments on commit 64723d8

Please sign in to comment.