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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2440563004: Switch to using an explicit ended signal instead of time comparison. (Closed)
Patch Set: Fix ended event in ARI. Created 4 years, 1 month 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 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 void contextDestroyed() final; 356 void contextDestroyed() final;
357 357
358 virtual void updateDisplayState() {} 358 virtual void updateDisplayState() {}
359 359
360 void setReadyState(ReadyState); 360 void setReadyState(ReadyState);
361 void setNetworkState(WebMediaPlayer::NetworkState); 361 void setNetworkState(WebMediaPlayer::NetworkState);
362 362
363 // WebMediaPlayerClient implementation. 363 // WebMediaPlayerClient implementation.
364 void networkStateChanged() final; 364 void networkStateChanged() final;
365 void readyStateChanged() final; 365 void readyStateChanged() final;
366 void timeChanged() final; 366 void timeChanged(bool) final;
367 void repaint() final; 367 void repaint() final;
368 void durationChanged() final; 368 void durationChanged() final;
369 void sizeChanged() final; 369 void sizeChanged() final;
370 void playbackStateChanged() final; 370 void playbackStateChanged() final;
371 371
372 void setWebLayer(WebLayer*) final; 372 void setWebLayer(WebLayer*) final;
373 WebMediaPlayer::TrackId addAudioTrack(const WebString&, 373 WebMediaPlayer::TrackId addAudioTrack(const WebString&,
374 WebMediaPlayerClient::AudioTrackKind, 374 WebMediaPlayerClient::AudioTrackKind,
375 const WebString&, 375 const WebString&,
376 const WebString&, 376 const WebString&,
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 inline bool isHTMLMediaElement(const HTMLElement& element) { 730 inline bool isHTMLMediaElement(const HTMLElement& element) {
731 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 731 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
732 } 732 }
733 733
734 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 734 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
735 735
736 } // namespace blink 736 } // namespace blink
737 737
738 #endif // HTMLMediaElement_h 738 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698