| OLD | NEW |
| 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 mutable double official_playback_position_; | 619 mutable double official_playback_position_; |
| 620 mutable bool official_playback_position_needs_update_; | 620 mutable bool official_playback_position_needs_update_; |
| 621 | 621 |
| 622 double fragment_end_time_; | 622 double fragment_end_time_; |
| 623 | 623 |
| 624 typedef unsigned PendingActionFlags; | 624 typedef unsigned PendingActionFlags; |
| 625 PendingActionFlags pending_action_flags_; | 625 PendingActionFlags pending_action_flags_; |
| 626 | 626 |
| 627 // FIXME: HTMLMediaElement has way too many state bits. | 627 // FIXME: HTMLMediaElement has way too many state bits. |
| 628 bool playing_ : 1; | 628 bool playing_ : 1; |
| 629 bool pending_play_ : 1; |
| 629 bool should_delay_load_event_ : 1; | 630 bool should_delay_load_event_ : 1; |
| 630 bool have_fired_loaded_data_ : 1; | 631 bool have_fired_loaded_data_ : 1; |
| 631 bool can_autoplay_ : 1; | 632 bool can_autoplay_ : 1; |
| 632 bool muted_ : 1; | 633 bool muted_ : 1; |
| 633 bool paused_ : 1; | 634 bool paused_ : 1; |
| 634 bool seeking_ : 1; | 635 bool seeking_ : 1; |
| 635 | 636 |
| 636 // data has not been loaded since sending a "stalled" event | 637 // data has not been loaded since sending a "stalled" event |
| 637 bool sent_stalled_event_ : 1; | 638 bool sent_stalled_event_ : 1; |
| 638 | 639 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 742 |
| 742 inline bool IsHTMLMediaElement(const HTMLElement& element) { | 743 inline bool IsHTMLMediaElement(const HTMLElement& element) { |
| 743 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 744 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 744 } | 745 } |
| 745 | 746 |
| 746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 747 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 747 | 748 |
| 748 } // namespace blink | 749 } // namespace blink |
| 749 | 750 |
| 750 #endif // HTMLMediaElement_h | 751 #endif // HTMLMediaElement_h |
| OLD | NEW |