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

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

Issue 539103002: Seeking media fragment URI before loadeddata event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@HAVE_NOTHING
Patch Set: Ready for review Created 6 years, 3 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
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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 void setPausedInternal(bool); 436 void setPausedInternal(bool);
437 437
438 void setShouldDelayLoadEvent(bool); 438 void setShouldDelayLoadEvent(bool);
439 void invalidateCachedTime(); 439 void invalidateCachedTime();
440 void refreshCachedTime() const; 440 void refreshCachedTime() const;
441 441
442 bool hasMediaControls() const; 442 bool hasMediaControls() const;
443 bool createMediaControls(); 443 bool createMediaControls();
444 void configureMediaControls(); 444 void configureMediaControls();
445 445
446 void prepareMediaFragmentURI(); 446 void prepareMediaFragmentURI();
amogh.bihani 2014/09/05 09:05:43 Sorry, I forgot these, I'll remove them in next PS
447 void applyMediaFragmentURI(); 447 void applyMediaFragmentURI();
448 448
449 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; 449 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL;
450 450
451 void changeNetworkStateFromLoadingToIdle(); 451 void changeNetworkStateFromLoadingToIdle();
452 452
453 const AtomicString& mediaGroup() const; 453 const AtomicString& mediaGroup() const;
454 void setMediaGroup(const AtomicString&); 454 void setMediaGroup(const AtomicString&);
455 void updateMediaController(); 455 void updateMediaController();
456 bool isBlocked() const; 456 bool isBlocked() const;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 MediaPlayer::Preload m_preload; 539 MediaPlayer::Preload m_preload;
540 540
541 DisplayMode m_displayMode; 541 DisplayMode m_displayMode;
542 542
543 RefPtrWillBeMember<HTMLMediaSource> m_mediaSource; 543 RefPtrWillBeMember<HTMLMediaSource> m_mediaSource;
544 544
545 mutable double m_cachedTime; 545 mutable double m_cachedTime;
546 mutable double m_cachedTimeWallClockUpdateTime; 546 mutable double m_cachedTimeWallClockUpdateTime;
547 mutable double m_minimumWallClockTimeToCacheMediaTime; 547 mutable double m_minimumWallClockTimeToCacheMediaTime;
548 548
549 double m_fragmentStartTime;
550 double m_fragmentEndTime; 549 double m_fragmentEndTime;
551 550
552 typedef unsigned PendingActionFlags; 551 typedef unsigned PendingActionFlags;
553 PendingActionFlags m_pendingActionFlags; 552 PendingActionFlags m_pendingActionFlags;
554 553
555 // FIXME: MediaElement has way too many state bits. 554 // FIXME: MediaElement has way too many state bits.
556 bool m_userGestureRequiredForPlay : 1; 555 bool m_userGestureRequiredForPlay : 1;
557 bool m_playing : 1; 556 bool m_playing : 1;
558 bool m_shouldDelayLoadEvent : 1; 557 bool m_shouldDelayLoadEvent : 1;
559 bool m_haveFiredLoadedData : 1; 558 bool m_haveFiredLoadedData : 1;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 inline bool isHTMLMediaElement(const HTMLElement& element) 633 inline bool isHTMLMediaElement(const HTMLElement& element)
635 { 634 {
636 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 635 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
637 } 636 }
638 637
639 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 638 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
640 639
641 } //namespace 640 } //namespace
642 641
643 #endif 642 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698