Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Side by Side Diff: ui/android/java/src/org/chromium/ui/base/EventHandler.java

Issue 2502763003: Introduce ViewRoot to forward input/view events to native (Closed)
Patch Set: addressed comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698