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

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

Issue 2910683003: A video tag should play content src is set asynchronously with preload is disabled.
Patch Set: A video tag should play content src is set asynchronously with preload is disabled. Created 3 years, 6 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 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 mutable double official_playback_position_; 618 mutable double official_playback_position_;
619 mutable bool official_playback_position_needs_update_; 619 mutable bool official_playback_position_needs_update_;
620 620
621 double fragment_end_time_; 621 double fragment_end_time_;
622 622
623 typedef unsigned PendingActionFlags; 623 typedef unsigned PendingActionFlags;
624 PendingActionFlags pending_action_flags_; 624 PendingActionFlags pending_action_flags_;
625 625
626 // FIXME: HTMLMediaElement has way too many state bits. 626 // FIXME: HTMLMediaElement has way too many state bits.
627 bool playing_ : 1; 627 bool playing_ : 1;
628 bool pending_play_ : 1;
628 bool should_delay_load_event_ : 1; 629 bool should_delay_load_event_ : 1;
629 bool have_fired_loaded_data_ : 1; 630 bool have_fired_loaded_data_ : 1;
630 bool can_autoplay_ : 1; 631 bool can_autoplay_ : 1;
631 bool muted_ : 1; 632 bool muted_ : 1;
632 bool paused_ : 1; 633 bool paused_ : 1;
633 bool seeking_ : 1; 634 bool seeking_ : 1;
634 635
635 // data has not been loaded since sending a "stalled" event 636 // data has not been loaded since sending a "stalled" event
636 bool sent_stalled_event_ : 1; 637 bool sent_stalled_event_ : 1;
637 638
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 741
741 inline bool IsHTMLMediaElement(const HTMLElement& element) { 742 inline bool IsHTMLMediaElement(const HTMLElement& element) {
742 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 743 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
743 } 744 }
744 745
745 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
746 747
747 } // namespace blink 748 } // namespace blink
748 749
749 #endif // HTMLMediaElement_h 750 #endif // HTMLMediaElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698