| 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.content.Context; | 7 import android.content.Context; |
| 8 import android.graphics.Bitmap; | 8 import android.graphics.Bitmap; |
| 9 import android.graphics.Canvas; | 9 import android.graphics.Canvas; |
| 10 import android.graphics.Color; | 10 import android.graphics.Color; |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 (InputMethodManager) getContext().getSystemService(Context.INPUT
_METHOD_SERVICE); | 315 (InputMethodManager) getContext().getSystemService(Context.INPUT
_METHOD_SERVICE); |
| 316 inputManager.showSoftInput(this, 0); | 316 inputManager.showSoftInput(this, 0); |
| 317 } | 317 } |
| 318 | 318 |
| 319 @Override | 319 @Override |
| 320 public void transformationChanged() { | 320 public void transformationChanged() { |
| 321 requestRepaint(); | 321 requestRepaint(); |
| 322 } | 322 } |
| 323 | 323 |
| 324 @Override | 324 @Override |
| 325 public void cursorMoved() { |
| 326 // For current implementation, cursorMoved() is always followed by trans
formationChanged() |
| 327 // even if the canvas isn't really changed. For future we should improve
this by not calling |
| 328 // transformationChanged() if the cursor is moved but the canvas is not
changed. |
| 329 } |
| 330 |
| 331 @Override |
| 332 public void cursorVisibilityChanged() { |
| 333 requestRepaint(); |
| 334 } |
| 335 |
| 336 @Override |
| 325 public void setAnimationEnabled(boolean enabled) { | 337 public void setAnimationEnabled(boolean enabled) { |
| 326 synchronized (mAnimationLock) { | 338 synchronized (mAnimationLock) { |
| 327 if (enabled && !mInputAnimationRunning) { | 339 if (enabled && !mInputAnimationRunning) { |
| 328 requestRepaint(); | 340 requestRepaint(); |
| 329 } | 341 } |
| 330 mInputAnimationRunning = enabled; | 342 mInputAnimationRunning = enabled; |
| 331 } | 343 } |
| 332 } | 344 } |
| 333 } | 345 } |
| OLD | NEW |