OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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.ui.base; |
| 6 |
| 7 import org.chromium.base.annotations.JNINamespace; |
| 8 |
| 9 /** |
| 10 * Class used to forward view, input events down to native. |
| 11 */ |
| 12 @JNINamespace("ui") |
| 13 public class EventHandler { |
| 14 private final long mNativeView; |
| 15 |
| 16 public EventHandler(long nativeView) { |
| 17 mNativeView = nativeView; |
| 18 } |
| 19 |
| 20 public void onPhysicalBackingSizeChanged(int width, int height) { |
| 21 nativeOnPhysicalBackingSizeChanged(mNativeView, width, height); |
| 22 } |
| 23 |
| 24 private static native void nativeOnPhysicalBackingSizeChanged(long viewAndro
id, |
| 25 int width, int height); |
| 26 } |
OLD | NEW |