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

Side by Side Diff: public/platform/WebMediaPlayer.h

Issue 1158913002: Replacing the 'return 0;' statements with 'return nullptr;' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 | « public/platform/WebGraphicsContext3D.h ('k') | public/platform/WebMediaStreamCenter.h » ('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) 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 virtual bool didLoadingProgress() = 0; 137 virtual bool didLoadingProgress() = 0;
138 138
139 virtual bool hasSingleSecurityOrigin() const = 0; 139 virtual bool hasSingleSecurityOrigin() const = 0;
140 virtual bool didPassCORSAccessCheck() const = 0; 140 virtual bool didPassCORSAccessCheck() const = 0;
141 141
142 virtual double mediaTimeForTimeValue(double timeValue) const = 0; 142 virtual double mediaTimeForTimeValue(double timeValue) const = 0;
143 143
144 virtual unsigned decodedFrameCount() const = 0; 144 virtual unsigned decodedFrameCount() const = 0;
145 virtual unsigned droppedFrameCount() const = 0; 145 virtual unsigned droppedFrameCount() const = 0;
146 virtual unsigned corruptedFrameCount() const { return 0; }; 146 virtual unsigned corruptedFrameCount() const { return 0; }
147 virtual unsigned audioDecodedByteCount() const = 0; 147 virtual unsigned audioDecodedByteCount() const = 0;
148 virtual unsigned videoDecodedByteCount() const = 0; 148 virtual unsigned videoDecodedByteCount() const = 0;
149 149
150 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0; 150 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha, SkXfermo de::Mode) = 0;
151 // Do a GPU-GPU textures copy if possible. 151 // Do a GPU-GPU textures copy if possible.
152 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; } 152 virtual bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, unsign ed texture, unsigned level, unsigned internalFormat, unsigned type, bool premult iplyAlpha, bool flipY) { return false; }
153 153
154 virtual WebAudioSourceProvider* audioSourceProvider() { return 0; } 154 virtual WebAudioSourceProvider* audioSourceProvider() { return nullptr; }
155 155
156 // Returns whether keySystem is supported. If true, the result will be 156 // Returns whether keySystem is supported. If true, the result will be
157 // reported by an event. 157 // reported by an event.
158 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; } 158 virtual MediaKeyException generateKeyRequest(const WebString& keySystem, con st unsigned char* initData, unsigned initDataLength) { return MediaKeyExceptionK eySystemNotSupported; }
159 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; } 159 virtual MediaKeyException addKey(const WebString& keySystem, const unsigned char* key, unsigned keyLength, const unsigned char* initData, unsigned initDataL ength, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupport ed; }
160 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; } 160 virtual MediaKeyException cancelKeyRequest(const WebString& keySystem, const WebString& sessionId) { return MediaKeyExceptionKeySystemNotSupported; }
161 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry ptionModuleExceptionNotSupportedError, 0, "ERROR"); } 161 virtual void setContentDecryptionModule(WebContentDecryptionModule* cdm, Web ContentDecryptionModuleResult result) { result.completeWithError(WebContentDecry ptionModuleExceptionNotSupportedError, 0, "ERROR"); }
162 162
163 // Sets the poster image URL. 163 // Sets the poster image URL.
164 virtual void setPoster(const WebURL& poster) { } 164 virtual void setPoster(const WebURL& poster) { }
165 165
166 // Instruct WebMediaPlayer to enter/exit fullscreen. 166 // Instruct WebMediaPlayer to enter/exit fullscreen.
167 virtual void enterFullscreen() { } 167 virtual void enterFullscreen() { }
168 168
169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
170 // |selectedTrackId| is null if no track is selected. 170 // |selectedTrackId| is null if no track is selected.
171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
172 }; 172 };
173 173
174 } // namespace blink 174 } // namespace blink
175 175
176 #endif 176 #endif
OLDNEW
« no previous file with comments | « public/platform/WebGraphicsContext3D.h ('k') | public/platform/WebMediaStreamCenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698