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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/DesktopView.java

Issue 2067093002: Fixing Toolbar flakiness in Android client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A bit more cleanup Created 4 years, 6 months 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
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/Desktop.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/Desktop.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698