| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chromoting; | 5 package org.chromium.chromoting; |
| 6 | 6 |
| 7 import android.graphics.Matrix; | 7 import android.graphics.Matrix; |
| 8 import android.graphics.PointF; | 8 import android.graphics.PointF; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 mCursorPosition.x = newX; | 50 mCursorPosition.x = newX; |
| 51 cursorMoved = true; | 51 cursorMoved = true; |
| 52 } | 52 } |
| 53 if (newY != mCursorPosition.y) { | 53 if (newY != mCursorPosition.y) { |
| 54 mCursorPosition.y = newY; | 54 mCursorPosition.y = newY; |
| 55 cursorMoved = true; | 55 cursorMoved = true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 return cursorMoved; | 58 return cursorMoved; |
| 59 } | 59 } |
| 60 |
| 61 /** |
| 62 * Indicates whether all information required to render the canvas has been
set. |
| 63 * |
| 64 * @return True if both screen and image dimensions have been set. |
| 65 */ |
| 66 public boolean initialized() { |
| 67 return imageWidth != 0 && imageHeight != 0 && screenWidth != 0 && screen
Height != 0; |
| 68 } |
| 60 } | 69 } |
| OLD | NEW |