001 package com.google.gwt.maps.client.services; 002 003 import com.google.gwt.core.client.JavaScriptObject; 004 005 public class Test extends JavaScriptObject { 006 007 protected Test() { 008 } 009 010 public static final Test newInstance() { 011 return JavaScriptObject.createObject().cast(); 012 } 013 014 public final native void test() /*-{ 015 this.origin = "Arlington, WA"; 016 this.destination = "Seattle, WA"; 017 this.travelMode = "DRIVING"; 018 }-*/; 019 020 }