Chromium Code Reviews| 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.chromoting; | |
| 6 | |
| 7 import android.graphics.Canvas; | |
| 8 import android.graphics.Point; | |
| 9 | |
| 10 /** A class for all {@link Event} parameters. */ | |
| 11 public final class EventParameters { | |
|
Lambros
2016/06/01 23:51:36
These various EventParameters.* classes will not b
Hzj_jie
2016/06/02 02:21:37
During prototyping before, I found lots of events
| |
| 12 /** The parameter for an OnPaint event. */ | |
| 13 public static final class Paint { | |
| 14 public final Point cursorPosition; | |
| 15 public final Canvas canvas; | |
| 16 public final float scale; | |
| 17 | |
| 18 public Paint(Point cursorPosition, Canvas canvas, float scale) { | |
|
Lambros
2016/06/01 23:51:36
PaintAnimation?
Hzj_jie
2016/06/02 02:21:37
Same reason as mOnPaint field and onPaint() functi
| |
| 19 this.cursorPosition = cursorPosition; | |
| 20 this.canvas = canvas; | |
| 21 this.scale = scale; | |
| 22 } | |
| 23 } | |
| 24 } | |
| OLD | NEW |