| OLD | NEW |
| 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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 void scheduleNotifyPlaying(); | 480 void scheduleNotifyPlaying(); |
| 481 | 481 |
| 482 void resolvePlayPromises(); | 482 void resolvePlayPromises(); |
| 483 // TODO(mlamouri): this is used for cancellable tasks because we can't pass | 483 // TODO(mlamouri): this is used for cancellable tasks because we can't pass |
| 484 // parameters. | 484 // parameters. |
| 485 void rejectPlayPromises(); | 485 void rejectPlayPromises(); |
| 486 void rejectPlayPromises(ExceptionCode, const String&); | 486 void rejectPlayPromises(ExceptionCode, const String&); |
| 487 | 487 |
| 488 EnumerationHistogram& showControlsHistogram() const; | 488 EnumerationHistogram& showControlsHistogram() const; |
| 489 | 489 |
| 490 void recordAutoplaySourceMetric(int source); |
| 491 |
| 490 UnthrottledTimer<HTMLMediaElement> m_loadTimer; | 492 UnthrottledTimer<HTMLMediaElement> m_loadTimer; |
| 491 UnthrottledTimer<HTMLMediaElement> m_progressEventTimer; | 493 UnthrottledTimer<HTMLMediaElement> m_progressEventTimer; |
| 492 UnthrottledTimer<HTMLMediaElement> m_playbackProgressTimer; | 494 UnthrottledTimer<HTMLMediaElement> m_playbackProgressTimer; |
| 493 UnthrottledTimer<HTMLMediaElement> m_audioTracksTimer; | 495 UnthrottledTimer<HTMLMediaElement> m_audioTracksTimer; |
| 494 Member<TimeRanges> m_playedTimeRanges; | 496 Member<TimeRanges> m_playedTimeRanges; |
| 495 Member<GenericEventQueue> m_asyncEventQueue; | 497 Member<GenericEventQueue> m_asyncEventQueue; |
| 496 | 498 |
| 497 double m_playbackRate; | 499 double m_playbackRate; |
| 498 double m_defaultPlaybackRate; | 500 double m_defaultPlaybackRate; |
| 499 NetworkState m_networkState; | 501 NetworkState m_networkState; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 inline bool isHTMLMediaElement(const HTMLElement& element) | 670 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 669 { | 671 { |
| 670 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 672 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 671 } | 673 } |
| 672 | 674 |
| 673 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 675 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 674 | 676 |
| 675 } // namespace blink | 677 } // namespace blink |
| 676 | 678 |
| 677 #endif // HTMLMediaElement_h | 679 #endif // HTMLMediaElement_h |
| OLD | NEW |