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

Side by Side Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 2705213007: [Video] MediaSession API event handlers can resume background video. (Closed)
Patch Set: Fixed WMPA Created 3 years, 10 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 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 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // Whether OnPlaybackComplete() has been called since the last playback. 416 // Whether OnPlaybackComplete() has been called since the last playback.
417 bool playback_completed_; 417 bool playback_completed_;
418 418
419 // The last volume received by setVolume() and the last volume multiplier from 419 // The last volume received by setVolume() and the last volume multiplier from
420 // OnVolumeMultiplierUpdate(). The multiplier is typical 1.0, but may be less 420 // OnVolumeMultiplierUpdate(). The multiplier is typical 1.0, but may be less
421 // if the WebMediaPlayerDelegate has requested a volume reduction (ducking) 421 // if the WebMediaPlayerDelegate has requested a volume reduction (ducking)
422 // for a transient sound. Playout volume is derived by volume * multiplier. 422 // for a transient sound. Playout volume is derived by volume * multiplier.
423 double volume_; 423 double volume_;
424 double volume_multiplier_; 424 double volume_multiplier_;
425 425
426 // Whether the video requires a user gesture to resume after it was paused in
427 // the background.
428 bool video_locked_when_paused_when_hidden_;
429
426 // NOTE: Weak pointers must be invalidated before all other member variables. 430 // NOTE: Weak pointers must be invalidated before all other member variables.
427 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; 431 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_;
428 432
429 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); 433 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid);
430 }; 434 };
431 435
432 } // namespace content 436 } // namespace content
433 437
434 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ 438 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698