OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.compositor.eventfilter; |
| 6 |
| 7 import android.view.MotionEvent; |
| 8 |
| 9 import org.chromium.chrome.browser.compositor.layouts.eventfilter.EventFilterHos
t; |
| 10 |
| 11 /** |
| 12 * Most basic {@link EventFilterHost}. |
| 13 */ |
| 14 public class MockEventFilterHost implements EventFilterHost { |
| 15 public MockEventFilterHost() { |
| 16 } |
| 17 |
| 18 @Override |
| 19 public boolean propagateEvent(MotionEvent e) { |
| 20 return false; |
| 21 } |
| 22 |
| 23 @Override |
| 24 public int getViewportWidth() { |
| 25 return 0; |
| 26 } |
| 27 } |
OLD | NEW |