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

Unified Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 1504913002: Revert of Enforce marking "override" for functions overriding Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 5b41f2c8c3287ff88ceedab3f97a1e6263ed1601..d9b7fe8551cc3267478d01389a733eb5f8b93176 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -97,44 +97,44 @@
scoped_refptr<StreamTextureFactory> factory,
int frame_id,
const media::WebMediaPlayerParams& params);
- ~WebMediaPlayerAndroid() override;
+ virtual ~WebMediaPlayerAndroid();
// blink::WebMediaPlayer implementation.
- bool supportsOverlayFullscreenVideo() override;
- void enterFullscreen() override;
+ virtual bool supportsOverlayFullscreenVideo();
+ virtual void enterFullscreen();
// Resource loading.
- void load(LoadType load_type,
- const blink::WebURL& url,
- CORSMode cors_mode) override;
+ virtual void load(LoadType load_type,
+ const blink::WebURL& url,
+ CORSMode cors_mode);
// Playback controls.
- void play() override;
- void pause() override;
- void seek(double seconds) override;
- bool supportsSave() const override;
- void setRate(double rate) override;
- void setVolume(double volume) override;
- void setSinkId(const blink::WebString& sink_id,
- const blink::WebSecurityOrigin& security_origin,
- blink::WebSetSinkIdCallbacks* web_callback) override;
- void requestRemotePlayback() override;
- void requestRemotePlaybackControl() override;
- blink::WebTimeRanges buffered() const override;
- blink::WebTimeRanges seekable() const override;
+ virtual void play();
+ virtual void pause();
+ virtual void seek(double seconds);
+ virtual bool supportsSave() const;
+ virtual void setRate(double rate);
+ virtual void setVolume(double volume);
+ virtual void setSinkId(const blink::WebString& sink_id,
+ const blink::WebSecurityOrigin& security_origin,
+ blink::WebSetSinkIdCallbacks* web_callback);
+ virtual void requestRemotePlayback();
+ virtual void requestRemotePlaybackControl();
+ virtual blink::WebTimeRanges buffered() const;
+ virtual blink::WebTimeRanges seekable() const;
// Poster image, as defined in the <video> element.
- void setPoster(const blink::WebURL& poster) override;
+ virtual void setPoster(const blink::WebURL& poster) override;
// Methods for painting.
// FIXME: This path "only works" on Android. It is a workaround for the
// issue that Skia could not handle Android's GL_TEXTURE_EXTERNAL_OES texture
// internally. It should be removed and replaced by the normal paint path.
// https://code.google.com/p/skia/issues/detail?id=1189
- void paint(blink::WebCanvas* canvas,
- const blink::WebRect& rect,
- unsigned char alpha,
- SkXfermode::Mode mode) override;
+ virtual void paint(blink::WebCanvas* canvas,
+ const blink::WebRect& rect,
+ unsigned char alpha,
+ SkXfermode::Mode mode);
bool copyVideoTextureToPlatformTexture(
blink::WebGraphicsContext3D* web_graphics_context,
@@ -145,37 +145,37 @@
bool flip_y) override;
// True if the loaded media has a playable video/audio track.
- bool hasVideo() const override;
- bool hasAudio() const override;
-
- bool isRemote() const override;
+ virtual bool hasVideo() const;
+ virtual bool hasAudio() const;
+
+ virtual bool isRemote() const;
// Dimensions of the video.
- blink::WebSize naturalSize() const override;
+ virtual blink::WebSize naturalSize() const;
// Getters of playback state.
- bool paused() const override;
- bool seeking() const override;
- double duration() const override;
+ virtual bool paused() const;
+ virtual bool seeking() const;
+ virtual double duration() const;
virtual double timelineOffset() const;
- double currentTime() const override;
-
- bool didLoadingProgress() override;
+ virtual double currentTime() const;
+
+ virtual bool didLoadingProgress();
// Internal states of loading and network.
- blink::WebMediaPlayer::NetworkState networkState() const override;
- blink::WebMediaPlayer::ReadyState readyState() const override;
-
- bool hasSingleSecurityOrigin() const override;
- bool didPassCORSAccessCheck() const override;
-
- double mediaTimeForTimeValue(double timeValue) const override;
+ virtual blink::WebMediaPlayer::NetworkState networkState() const;
+ virtual blink::WebMediaPlayer::ReadyState readyState() const;
+
+ virtual bool hasSingleSecurityOrigin() const;
+ virtual bool didPassCORSAccessCheck() const;
+
+ virtual double mediaTimeForTimeValue(double timeValue) const;
// Provide statistics.
- unsigned decodedFrameCount() const override;
- unsigned droppedFrameCount() const override;
- unsigned audioDecodedByteCount() const override;
- unsigned videoDecodedByteCount() const override;
+ virtual unsigned decodedFrameCount() const;
+ virtual unsigned droppedFrameCount() const;
+ virtual unsigned audioDecodedByteCount() const;
+ virtual unsigned videoDecodedByteCount() const;
// cc::VideoFrameProvider implementation. These methods are running on the
// compositor thread.
@@ -233,22 +233,24 @@
const gfx::RectF GetBoundaryRectangle();
#endif // defined(VIDEO_HOLE)
- MediaKeyException generateKeyRequest(const blink::WebString& key_system,
- const unsigned char* init_data,
- unsigned init_data_length) override;
- MediaKeyException addKey(const blink::WebString& key_system,
- const unsigned char* key,
- unsigned key_length,
- const unsigned char* init_data,
- unsigned init_data_length,
- const blink::WebString& session_id) override;
- MediaKeyException cancelKeyRequest(
+ virtual MediaKeyException generateKeyRequest(
const blink::WebString& key_system,
- const blink::WebString& session_id) override;
-
- void setContentDecryptionModule(
+ const unsigned char* init_data,
+ unsigned init_data_length);
+ virtual MediaKeyException addKey(
+ const blink::WebString& key_system,
+ const unsigned char* key,
+ unsigned key_length,
+ const unsigned char* init_data,
+ unsigned init_data_length,
+ const blink::WebString& session_id);
+ virtual MediaKeyException cancelKeyRequest(
+ const blink::WebString& key_system,
+ const blink::WebString& session_id);
+
+ virtual void setContentDecryptionModule(
blink::WebContentDecryptionModule* cdm,
- blink::WebContentDecryptionModuleResult result) override;
+ blink::WebContentDecryptionModuleResult result);
void OnKeyAdded(const std::string& session_id);
void OnKeyError(const std::string& session_id,
« no previous file with comments | « content/renderer/media/android/media_info_loader.h ('k') | content/renderer/media/android/webmediasession_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698