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

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

Issue 652603004: Fix Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename R to matrixR in DeviceSensors Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.app.Activity; 7 import android.app.Activity;
8 import android.content.Context; 8 import android.content.Context;
9 import android.os.Bundle; 9 import android.os.Bundle;
10 import android.support.v4.view.MenuItemCompat; 10 import android.support.v4.view.MenuItemCompat;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 public void onActivityPaused(Activity activity) { 293 public void onActivityPaused(Activity activity) {
294 removeMediaRouterCallback(); 294 removeMediaRouterCallback();
295 } 295 }
296 296
297 @Override 297 @Override
298 public void onActivityResumed(Activity activity) { 298 public void onActivityResumed(Activity activity) {
299 addMediaRouterCallback(); 299 addMediaRouterCallback();
300 } 300 }
301 301
302 @Override 302 @Override
303 public void onActivitySaveInstanceState (Activity activity, Bundle outState) {} 303 public void onActivitySaveInstanceState(Activity activity, Bundle outState) {}
304 304
305 @Override 305 @Override
306 public void onActivityStarted(Activity activity) { 306 public void onActivityStarted(Activity activity) {
307 addMediaRouterCallback(); 307 addMediaRouterCallback();
308 } 308 }
309 309
310 @Override 310 @Override
311 public void onActivityStopped(Activity activity) { 311 public void onActivityStopped(Activity activity) {
312 removeMediaRouterCallback(); 312 removeMediaRouterCallback();
313 } 313 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 /** 469 /**
470 * Makes a toast using the given message and duration. 470 * Makes a toast using the given message and duration.
471 */ 471 */
472 private void showToast(int messageId, int duration) { 472 private void showToast(int messageId, int duration) {
473 if (mContext != null) { 473 if (mContext != null) {
474 Toast.makeText(mContext, mContext.getString(messageId), duration).sh ow(); 474 Toast.makeText(mContext, mContext.getString(messageId), duration).sh ow();
475 } 475 }
476 } 476 }
477 } 477 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698