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

Side by Side Diff: media/base/media_content_type.h

Issue 1996043002: Split MediaContentType and AudioFocusType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed desktop build & tests Created 4 years, 5 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_MEDIA_CONTENT_TYPE_H_
6 #define MEDIA_BASE_MEDIA_CONTENT_TYPE_H_
7
8 #include "base/time/time.h"
9 #include "media/base/media_export.h"
10
11 namespace media {
12
13 // The content type of a media player, which will be used by MediaSession to
14 // control its players.
15 enum class MediaContentType {
mlamouri (slow - plz ping) 2016/08/18 14:33:15 I'm not a huge fan of the name but I don't really
16 // Type indicating that a player is primary content on the page.
17 Content,
18 // Type indicating that a player only plays a transient sound.
19 Transient,
20 // Type indicating that a player cannot be paused. MediaSession may duck the
21 // player instead of pausing it.
22 Unpausable,
23 // Type indicating that a player cannot be controlled. MediaSession wil ignore
24 // this player.
25 Uncontrollable
26 };
27
28 // Utility function for deciding whether a player is treated as Content type by
mlamouri (slow - plz ping) 2016/08/18 14:33:15 nit: s/treated as Content type by/treated as Conte
29 // its duration.
30 MEDIA_EXPORT MediaContentType
31 DurationToMediaContentType(base::TimeDelta duration);
32
33 } // namespace media
34
35 #endif // MEDIA_BASE_MEDIA_CONTENT_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698