|
1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*- |
|
2 * This Source Code Form is subject to the terms of the Mozilla Public |
|
3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
5 |
|
6 package org.mozilla.gecko; |
|
7 |
|
8 import android.view.MotionEvent; |
|
9 import android.view.View; |
|
10 |
|
11 public interface TouchEventInterceptor extends View.OnTouchListener { |
|
12 /** Override this method for a chance to consume events before the view or its children */ |
|
13 public boolean onInterceptTouchEvent(View view, MotionEvent event); |
|
14 } |