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

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

Issue 2556333002: Detect change on video/viewport intersection when rendered remotely (Closed)
Patch Set: Addressed ojan's comment. 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 /* 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void addTextTrack(WebInbandTextTrack*) = 0; 87 virtual void addTextTrack(WebInbandTextTrack*) = 0;
88 virtual void removeTextTrack(WebInbandTextTrack*) = 0; 88 virtual void removeTextTrack(WebInbandTextTrack*) = 0;
89 virtual void mediaSourceOpened(WebMediaSource*) = 0; 89 virtual void mediaSourceOpened(WebMediaSource*) = 0;
90 virtual void requestSeek(double) = 0; 90 virtual void requestSeek(double) = 0;
91 virtual void remoteRouteAvailabilityChanged( 91 virtual void remoteRouteAvailabilityChanged(
92 WebRemotePlaybackAvailability) = 0; 92 WebRemotePlaybackAvailability) = 0;
93 virtual void connectedToRemoteDevice() = 0; 93 virtual void connectedToRemoteDevice() = 0;
94 virtual void disconnectedFromRemoteDevice() = 0; 94 virtual void disconnectedFromRemoteDevice() = 0;
95 virtual void cancelledRemotePlaybackRequest() = 0; 95 virtual void cancelledRemotePlaybackRequest() = 0;
96 virtual void remotePlaybackStarted() = 0; 96 virtual void remotePlaybackStarted() = 0;
97 virtual void enableMonitorViewportIntersection(bool) {}
xhwang 2016/12/14 18:11:41 I know blink/webkit doesn't like comments, but IMH
xhwang 2016/12/14 18:11:41 BTW, I am not a fan of using enableFoo(false) to d
miu 2016/12/14 19:15:50 No, that wouldn't be right: This is a control meth
ojan 2016/12/14 21:00:56 Just want to clarify: Blink has no policy against
xjz 2016/12/15 00:01:41 Thanks miu and ojan. Took the suggestion, and rena
97 98
98 // Returns whether the media element is in an autoplay muted state. 99 // Returns whether the media element is in an autoplay muted state.
99 virtual bool isAutoplayingMuted() = 0; 100 virtual bool isAutoplayingMuted() = 0;
100 101
101 // Warning: This method will destruct the caller. 102 // Warning: This method will destruct the caller.
102 virtual void requestReload(const WebURL& newUrl) = 0; 103 virtual void requestReload(const WebURL& newUrl) = 0;
103 104
104 // Returns if there's a selected video track. 105 // Returns if there's a selected video track.
105 virtual bool hasSelectedVideoTrack() = 0; 106 virtual bool hasSelectedVideoTrack() = 0;
106 107
107 // Returns the selected video track id (or an empty id if there's none). 108 // Returns the selected video track id (or an empty id if there's none).
108 virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0; 109 virtual WebMediaPlayer::TrackId getSelectedVideoTrackId() = 0;
109 110
110 protected: 111 protected:
111 ~WebMediaPlayerClient() {} 112 ~WebMediaPlayerClient() {}
112 }; 113 };
113 114
114 } // namespace blink 115 } // namespace blink
115 116
116 #endif 117 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698