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

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

Issue 576073005: Implement "potentially playing" for media elements per spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 Timer<HTMLMediaElement> m_progressEventTimer; 477 Timer<HTMLMediaElement> m_progressEventTimer;
478 Timer<HTMLMediaElement> m_playbackProgressTimer; 478 Timer<HTMLMediaElement> m_playbackProgressTimer;
479 Timer<HTMLMediaElement> m_audioTracksTimer; 479 Timer<HTMLMediaElement> m_audioTracksTimer;
480 RefPtrWillBeMember<TimeRanges> m_playedTimeRanges; 480 RefPtrWillBeMember<TimeRanges> m_playedTimeRanges;
481 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; 481 OwnPtrWillBeMember<GenericEventQueue> m_asyncEventQueue;
482 482
483 double m_playbackRate; 483 double m_playbackRate;
484 double m_defaultPlaybackRate; 484 double m_defaultPlaybackRate;
485 NetworkState m_networkState; 485 NetworkState m_networkState;
486 ReadyState m_readyState; 486 ReadyState m_readyState;
487 ReadyState m_readyStateMaximum;
488 KURL m_currentSrc; 487 KURL m_currentSrc;
489 488
490 RefPtrWillBeMember<MediaError> m_error; 489 RefPtrWillBeMember<MediaError> m_error;
491 490
492 double m_volume; 491 double m_volume;
493 double m_lastSeekTime; 492 double m_lastSeekTime;
494 493
495 double m_previousProgressTime; 494 double m_previousProgressTime;
496 495
497 // Cached duration to suppress duplicate events if duration unchanged. 496 // Cached duration to suppress duplicate events if duration unchanged.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 inline bool isHTMLMediaElement(const HTMLElement& element) 628 inline bool isHTMLMediaElement(const HTMLElement& element)
630 { 629 {
631 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 630 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
632 } 631 }
633 632
634 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 633 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
635 634
636 } // namespace blink 635 } // namespace blink
637 636
638 #endif // HTMLMediaElement_h 637 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698