| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 @Override | 299 @Override |
| 300 public void showInputFeedback(InputFeedbackType feedbackToShow, Point pos) { | 300 public void showInputFeedback(InputFeedbackType feedbackToShow, Point pos) { |
| 301 if (feedbackToShow != InputFeedbackType.NONE) { | 301 if (feedbackToShow != InputFeedbackType.NONE) { |
| 302 FeedbackAnimator.startAnimation(this, pos, feedbackToShow); | 302 FeedbackAnimator.startAnimation(this, pos, feedbackToShow); |
| 303 requestRepaint(); | 303 requestRepaint(); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 @Override | 307 @Override |
| 308 public void showActionBar() { | 308 public void showActionBar() { |
| 309 mDesktop.showActionBar(); | 309 mDesktop.showSystemUi(); |
| 310 } | 310 } |
| 311 | 311 |
| 312 @Override | 312 @Override |
| 313 public void showKeyboard() { | 313 public void showKeyboard() { |
| 314 InputMethodManager inputManager = | 314 InputMethodManager inputManager = |
| 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 setAnimationEnabled(boolean enabled) { | 325 public void setAnimationEnabled(boolean enabled) { |
| 326 synchronized (mAnimationLock) { | 326 synchronized (mAnimationLock) { |
| 327 if (enabled && !mInputAnimationRunning) { | 327 if (enabled && !mInputAnimationRunning) { |
| 328 requestRepaint(); | 328 requestRepaint(); |
| 329 } | 329 } |
| 330 mInputAnimationRunning = enabled; | 330 mInputAnimationRunning = enabled; |
| 331 } | 331 } |
| 332 } | 332 } |
| 333 } | 333 } |
| OLD | NEW |