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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerBridge.java

Issue 2548013002: Remove redundant field initialization in Java code. (Closed)
Patch Set: rebase Created 4 years 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 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.chrome.browser.media.remote; 5 package org.chromium.chrome.browser.media.remote;
6 6
7 import android.graphics.Bitmap; 7 import android.graphics.Bitmap;
8 8
9 import org.chromium.base.Log; 9 import org.chromium.base.Log;
10 import org.chromium.base.annotations.CalledByNative; 10 import org.chromium.base.annotations.CalledByNative;
(...skipping 21 matching lines...) Expand all
32 private Bitmap mPosterBitmap; 32 private Bitmap mPosterBitmap;
33 private String mCookies; 33 private String mCookies;
34 private boolean mPauseRequested; 34 private boolean mPauseRequested;
35 private boolean mSeekRequested; 35 private boolean mSeekRequested;
36 private long mSeekLocation; 36 private long mSeekLocation;
37 private boolean mIsPlayable; 37 private boolean mIsPlayable;
38 private boolean mRouteIsAvailable; 38 private boolean mRouteIsAvailable;
39 39
40 // mActive is true when the Chrome is playing, or preparing to play, this pl ayer's video 40 // mActive is true when the Chrome is playing, or preparing to play, this pl ayer's video
41 // remotely. 41 // remotely.
42 private boolean mActive = false; 42 private boolean mActive;
43 43
44 private static final String TAG = "MediaFling"; 44 private static final String TAG = "MediaFling";
45 45
46 private final MediaRouteController.MediaStateListener mMediaStateListener = 46 private final MediaRouteController.MediaStateListener mMediaStateListener =
47 new MediaRouteController.MediaStateListener() { 47 new MediaRouteController.MediaStateListener() {
48 @Override 48 @Override
49 public void onRouteAvailabilityChanged(boolean available) { 49 public void onRouteAvailabilityChanged(boolean available) {
50 mRouteIsAvailable = available; 50 mRouteIsAvailable = available;
51 onRouteAvailabilityChange(); 51 onRouteAvailabilityChange();
52 } 52 }
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 private native String nativeGetTitle(long nativeRemoteMediaPlayerBridge); 371 private native String nativeGetTitle(long nativeRemoteMediaPlayerBridge);
372 private native void nativePauseLocal(long nativeRemoteMediaPlayerBridge); 372 private native void nativePauseLocal(long nativeRemoteMediaPlayerBridge);
373 private native int nativeGetLocalPosition(long nativeRemoteMediaPlayerBridge ); 373 private native int nativeGetLocalPosition(long nativeRemoteMediaPlayerBridge );
374 private native void nativeOnCastStarting(long nativeRemoteMediaPlayerBridge, 374 private native void nativeOnCastStarting(long nativeRemoteMediaPlayerBridge,
375 String castingMessage); 375 String castingMessage);
376 private native void nativeOnCastStarted(long nativeRemoteMediaPlayerBridge); 376 private native void nativeOnCastStarted(long nativeRemoteMediaPlayerBridge);
377 private native void nativeOnCastStopping(long nativeRemoteMediaPlayerBridge) ; 377 private native void nativeOnCastStopping(long nativeRemoteMediaPlayerBridge) ;
378 private native void nativeOnError(long nativeRemoteMediaPlayerBridge); 378 private native void nativeOnError(long nativeRemoteMediaPlayerBridge);
379 private native void nativeOnSeekCompleted(long nativeRemoteMediaPlayerBridge ); 379 private native void nativeOnSeekCompleted(long nativeRemoteMediaPlayerBridge );
380 } 380 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698