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

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

Issue 318923004: Eliminate MediaPlayer & MediaPlayerClient abstractions(readystate) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review comments Created 6 years, 6 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
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 virtual ~MediaPlayer() { } 111 virtual ~MediaPlayer() { }
112 112
113 virtual void load(blink::WebMediaPlayer::LoadType, const String& url, blink: :WebMediaPlayer::CORSMode) = 0; 113 virtual void load(blink::WebMediaPlayer::LoadType, const String& url, blink: :WebMediaPlayer::CORSMode) = 0;
114 114
115 virtual double rate() const = 0; 115 virtual double rate() const = 0;
116 virtual void setRate(double) = 0; 116 virtual void setRate(double) = 0;
117 117
118 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError }; 118 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError };
119 virtual NetworkState networkState() const = 0; 119 virtual NetworkState networkState() const = 0;
120 120
121 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat a, HaveEnoughData };
122 virtual ReadyState readyState() const = 0;
123
124 virtual double maxTimeSeekable() const = 0; 121 virtual double maxTimeSeekable() const = 0;
125 virtual PassRefPtr<TimeRanges> buffered() const = 0; 122 virtual PassRefPtr<TimeRanges> buffered() const = 0;
126 123
127 virtual bool didLoadingProgress() const = 0; 124 virtual bool didLoadingProgress() const = 0;
128 125
129 virtual void paint(GraphicsContext*, const IntRect&) = 0; 126 virtual void paint(GraphicsContext*, const IntRect&) = 0;
130 virtual bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0; 127 virtual bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0;
131 128
132 enum Preload { None, MetaData, Auto }; 129 enum Preload { None, MetaData, Auto };
133 virtual void setPreload(Preload) = 0; 130 virtual void setPreload(Preload) = 0;
134 131
135 #if ENABLE(WEB_AUDIO) 132 #if ENABLE(WEB_AUDIO)
136 virtual AudioSourceProvider* audioSourceProvider() = 0; 133 virtual AudioSourceProvider* audioSourceProvider() = 0;
137 #endif 134 #endif
138 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; 135 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0;
139 }; 136 };
140 137
141 } 138 }
142 139
143 #endif // MediaPlayer_h 140 #endif // MediaPlayer_h
OLDNEW
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.cpp ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698