Home | History | Annotate | Download | only in shadows
      1 package org.robolectric.shadows;
      2 
      3 import android.graphics.Rect;
      4 import android.view.TouchDelegate;
      5 import android.view.View;
      6 import org.robolectric.annotation.Implementation;
      7 import org.robolectric.annotation.Implements;
      8 import org.robolectric.annotation.RealObject;
      9 
     10 @Implements(TouchDelegate.class)
     11 public class ShadowTouchDelegate {
     12   @RealObject private TouchDelegate realObject;
     13   private Rect bounds;
     14   private View delegateView;
     15 
     16   @Implementation
     17   public void __constructor__(Rect bounds, View delegateView) {
     18     this.bounds = bounds;
     19     this.delegateView = delegateView;
     20   }
     21 
     22   public Rect getBounds() {
     23     return this.bounds;
     24   }
     25 
     26   public View getDelegateView() {
     27     return this.delegateView;
     28   }
     29 }
     30