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

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

Issue 2554113002: Deprecate UnthrottledThreadTimer. (Closed)
Patch Set: Move forgotten timer too Created 3 years, 12 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 | « no previous file | third_party/WebKit/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 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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 void rejectScheduledPlayPromises(); 546 void rejectScheduledPlayPromises();
547 void rejectPlayPromises(ExceptionCode, const String&); 547 void rejectPlayPromises(ExceptionCode, const String&);
548 void rejectPlayPromisesInternal(ExceptionCode, const String&); 548 void rejectPlayPromisesInternal(ExceptionCode, const String&);
549 549
550 EnumerationHistogram& showControlsHistogram() const; 550 EnumerationHistogram& showControlsHistogram() const;
551 551
552 void onVisibilityChangedForAutoplay(bool isVisible); 552 void onVisibilityChangedForAutoplay(bool isVisible);
553 553
554 void viewportFillDebouncerTimerFired(TimerBase*); 554 void viewportFillDebouncerTimerFired(TimerBase*);
555 555
556 UnthrottledThreadTimer<HTMLMediaElement> m_loadTimer; 556 TaskRunnerTimer<HTMLMediaElement> m_loadTimer;
557 UnthrottledThreadTimer<HTMLMediaElement> m_progressEventTimer; 557 TaskRunnerTimer<HTMLMediaElement> m_progressEventTimer;
558 UnthrottledThreadTimer<HTMLMediaElement> m_playbackProgressTimer; 558 TaskRunnerTimer<HTMLMediaElement> m_playbackProgressTimer;
559 UnthrottledThreadTimer<HTMLMediaElement> m_audioTracksTimer; 559 TaskRunnerTimer<HTMLMediaElement> m_audioTracksTimer;
560 UnthrottledThreadTimer<HTMLMediaElement> m_viewportFillDebouncerTimer; 560 TaskRunnerTimer<HTMLMediaElement> m_viewportFillDebouncerTimer;
561 UnthrottledThreadTimer<HTMLMediaElement> m_checkViewportIntersectionTimer; 561 TaskRunnerTimer<HTMLMediaElement> m_checkViewportIntersectionTimer;
562
562 Member<TimeRanges> m_playedTimeRanges; 563 Member<TimeRanges> m_playedTimeRanges;
563 Member<GenericEventQueue> m_asyncEventQueue; 564 Member<GenericEventQueue> m_asyncEventQueue;
564 565
565 double m_playbackRate; 566 double m_playbackRate;
566 double m_defaultPlaybackRate; 567 double m_defaultPlaybackRate;
567 NetworkState m_networkState; 568 NetworkState m_networkState;
568 ReadyState m_readyState; 569 ReadyState m_readyState;
569 ReadyState m_readyStateMaximum; 570 ReadyState m_readyStateMaximum;
570 KURL m_currentSrc; 571 KURL m_currentSrc;
571 Member<MediaStreamDescriptor> m_srcObject; 572 Member<MediaStreamDescriptor> m_srcObject;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 754
754 inline bool isHTMLMediaElement(const HTMLElement& element) { 755 inline bool isHTMLMediaElement(const HTMLElement& element) {
755 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 756 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
756 } 757 }
757 758
758 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 759 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
759 760
760 } // namespace blink 761 } // namespace blink
761 762
762 #endif // HTMLMediaElement_h 763 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698