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

Side by Side Diff: Source/platform/graphics/media/MediaPlayer.h

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tidy up button name Created 6 years, 4 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 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // the media file duration has changed, or is now known 60 // the media file duration has changed, or is now known
61 virtual void mediaPlayerDurationChanged() = 0; 61 virtual void mediaPlayerDurationChanged() = 0;
62 62
63 // the play/pause status changed 63 // the play/pause status changed
64 virtual void mediaPlayerPlaybackStateChanged() = 0; 64 virtual void mediaPlayerPlaybackStateChanged() = 0;
65 65
66 virtual void mediaPlayerRequestFullscreen() = 0; 66 virtual void mediaPlayerRequestFullscreen() = 0;
67 67
68 virtual void mediaPlayerRequestSeek(double) = 0; 68 virtual void mediaPlayerRequestSeek(double) = 0;
69 69
70 virtual void mediaPlayerRemoteRouteAvailabilityChanged(bool) = 0;
acolwell GONE FROM CHROMIUM 2014/08/05 19:36:34 nit: New methods should not be added to this inter
aberent 2014/08/22 14:08:34 Done.
71
72 virtual void mediaPlayerConnectedToRemoteDevice() = 0;
73
74 virtual void mediaPlayerDisconnectedFromRemoteDevice() = 0;
75
70 // The URL for video poster image. 76 // The URL for video poster image.
71 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it. 77 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it.
72 virtual KURL mediaPlayerPosterURL() = 0; 78 virtual KURL mediaPlayerPosterURL() = 0;
73 79
74 // Presentation-related methods 80 // Presentation-related methods
75 // a new frame of video is available 81 // a new frame of video is available
76 virtual void mediaPlayerRepaint() = 0; 82 virtual void mediaPlayerRepaint() = 0;
77 83
78 // the movie size has changed 84 // the movie size has changed
79 virtual void mediaPlayerSizeChanged() = 0; 85 virtual void mediaPlayerSizeChanged() = 0;
(...skipping 14 matching lines...) Expand all
94 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*); 100 static PassOwnPtr<MediaPlayer> create(MediaPlayerClient*);
95 static void setMediaEngineCreateFunction(CreateMediaEnginePlayer); 101 static void setMediaEngineCreateFunction(CreateMediaEnginePlayer);
96 102
97 static double invalidTime() { return -1.0; } 103 static double invalidTime() { return -1.0; }
98 104
99 MediaPlayer() { } 105 MediaPlayer() { }
100 virtual ~MediaPlayer() { } 106 virtual ~MediaPlayer() { }
101 107
102 virtual void load(blink::WebMediaPlayer::LoadType, const String& url, blink: :WebMediaPlayer::CORSMode) = 0; 108 virtual void load(blink::WebMediaPlayer::LoadType, const String& url, blink: :WebMediaPlayer::CORSMode) = 0;
103 109
110 virtual void requestRemotePlayback() = 0;
acolwell GONE FROM CHROMIUM 2014/08/05 19:36:35 nit: New methods should not be added to this inter
aberent 2014/08/22 14:08:34 Done.
111 virtual void requestRemotePlaybackControl() = 0;
112
104 enum Preload { None, MetaData, Auto }; 113 enum Preload { None, MetaData, Auto };
105 virtual void setPreload(Preload) = 0; 114 virtual void setPreload(Preload) = 0;
106 115
107 #if ENABLE(WEB_AUDIO) 116 #if ENABLE(WEB_AUDIO)
108 virtual AudioSourceProvider* audioSourceProvider() = 0; 117 virtual AudioSourceProvider* audioSourceProvider() = 0;
109 #endif 118 #endif
110 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; 119 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0;
111 }; 120 };
112 121
113 } 122 }
114 123
115 #endif // MediaPlayer_h 124 #endif // MediaPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698