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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayerClient.h

Issue 2480003002: [RemotePlayback] Keep track of source compatibility and reject prompt() correspondingly (Closed)
Patch Set: Fixed the java enum comment Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebMediaPlayer.h" 35 #include "WebMediaPlayer.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class WebInbandTextTrack; 39 class WebInbandTextTrack;
40 class WebLayer; 40 class WebLayer;
41 class WebMediaSource; 41 class WebMediaSource;
42 42
43 enum class WebRemotePlaybackAvailability;
44
43 class BLINK_PLATFORM_EXPORT WebMediaPlayerClient { 45 class BLINK_PLATFORM_EXPORT WebMediaPlayerClient {
44 public: 46 public:
45 enum VideoTrackKind { 47 enum VideoTrackKind {
46 VideoTrackKindNone, 48 VideoTrackKindNone,
47 VideoTrackKindAlternative, 49 VideoTrackKindAlternative,
48 VideoTrackKindCaptions, 50 VideoTrackKindCaptions,
49 VideoTrackKindMain, 51 VideoTrackKindMain,
50 VideoTrackKindSign, 52 VideoTrackKindSign,
51 VideoTrackKindSubtitles, 53 VideoTrackKindSubtitles,
52 VideoTrackKindCommentary 54 VideoTrackKindCommentary
(...skipping 26 matching lines...) Expand all
79 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id, 81 virtual WebMediaPlayer::TrackId addVideoTrack(const WebString& id,
80 VideoTrackKind, 82 VideoTrackKind,
81 const WebString& label, 83 const WebString& label,
82 const WebString& language, 84 const WebString& language,
83 bool selected) = 0; 85 bool selected) = 0;
84 virtual void removeVideoTrack(WebMediaPlayer::TrackId) = 0; 86 virtual void removeVideoTrack(WebMediaPlayer::TrackId) = 0;
85 virtual void addTextTrack(WebInbandTextTrack*) = 0; 87 virtual void addTextTrack(WebInbandTextTrack*) = 0;
86 virtual void removeTextTrack(WebInbandTextTrack*) = 0; 88 virtual void removeTextTrack(WebInbandTextTrack*) = 0;
87 virtual void mediaSourceOpened(WebMediaSource*) = 0; 89 virtual void mediaSourceOpened(WebMediaSource*) = 0;
88 virtual void requestSeek(double) = 0; 90 virtual void requestSeek(double) = 0;
89 virtual void remoteRouteAvailabilityChanged(bool) = 0; 91 virtual void remoteRouteAvailabilityChanged(
92 WebRemotePlaybackAvailability) = 0;
90 virtual void connectedToRemoteDevice() = 0; 93 virtual void connectedToRemoteDevice() = 0;
91 virtual void disconnectedFromRemoteDevice() = 0; 94 virtual void disconnectedFromRemoteDevice() = 0;
92 virtual void cancelledRemotePlaybackRequest() = 0; 95 virtual void cancelledRemotePlaybackRequest() = 0;
93 virtual void remotePlaybackStarted() = 0; 96 virtual void remotePlaybackStarted() = 0;
94 97
95 // Returns whether the media element is in an autoplay muted state. 98 // Returns whether the media element is in an autoplay muted state.
96 virtual bool isAutoplayingMuted() = 0; 99 virtual bool isAutoplayingMuted() = 0;
97 100
98 // Warning: This method will destruct the caller. 101 // Warning: This method will destruct the caller.
99 virtual void requestReload(const WebURL& newUrl) = 0; 102 virtual void requestReload(const WebURL& newUrl) = 0;
100 103
101 protected: 104 protected:
102 ~WebMediaPlayerClient() {} 105 ~WebMediaPlayerClient() {}
103 }; 106 };
104 107
105 } // namespace blink 108 } // namespace blink
106 109
107 #endif 110 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698