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

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

Issue 594533002: Replace HTMLMediaElement::isActive() with Node::inActiveDocument() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 blink::WebLayer* platformLayer() const; 96 blink::WebLayer* platformLayer() const;
97 97
98 enum DelayedActionType { 98 enum DelayedActionType {
99 LoadMediaResource = 1 << 0, 99 LoadMediaResource = 1 << 0,
100 LoadTextTrackResource = 1 << 1, 100 LoadTextTrackResource = 1 << 1,
101 TextTrackChangesNotification = 1 << 2 101 TextTrackChangesNotification = 1 << 2
102 }; 102 };
103 void scheduleDelayedAction(DelayedActionType); 103 void scheduleDelayedAction(DelayedActionType);
104 104
105 bool isActive() const { return m_active; }
106
107 bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; } 105 bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; }
108 bool isPlayingRemotely() const { return m_playingRemotely; } 106 bool isPlayingRemotely() const { return m_playingRemotely; }
109 107
110 // error state 108 // error state
111 PassRefPtrWillBeRawPtr<MediaError> error() const; 109 PassRefPtrWillBeRawPtr<MediaError> error() const;
112 110
113 // network state 111 // network state
114 void setSrc(const AtomicString&); 112 void setSrc(const AtomicString&);
115 const KURL& currentSrc() const { return m_currentSrc; } 113 const KURL& currentSrc() const { return m_currentSrc; }
116 114
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 double m_fragmentEndTime; 545 double m_fragmentEndTime;
548 546
549 typedef unsigned PendingActionFlags; 547 typedef unsigned PendingActionFlags;
550 PendingActionFlags m_pendingActionFlags; 548 PendingActionFlags m_pendingActionFlags;
551 549
552 // FIXME: MediaElement has way too many state bits. 550 // FIXME: MediaElement has way too many state bits.
553 bool m_userGestureRequiredForPlay : 1; 551 bool m_userGestureRequiredForPlay : 1;
554 bool m_playing : 1; 552 bool m_playing : 1;
555 bool m_shouldDelayLoadEvent : 1; 553 bool m_shouldDelayLoadEvent : 1;
556 bool m_haveFiredLoadedData : 1; 554 bool m_haveFiredLoadedData : 1;
557 bool m_active : 1;
558 bool m_autoplaying : 1; 555 bool m_autoplaying : 1;
559 bool m_muted : 1; 556 bool m_muted : 1;
560 bool m_paused : 1; 557 bool m_paused : 1;
561 bool m_seeking : 1; 558 bool m_seeking : 1;
562 559
563 // data has not been loaded since sending a "stalled" event 560 // data has not been loaded since sending a "stalled" event
564 bool m_sentStalledEvent : 1; 561 bool m_sentStalledEvent : 1;
565 562
566 // time has not changed since sending an "ended" event 563 // time has not changed since sending an "ended" event
567 bool m_sentEndEvent : 1; 564 bool m_sentEndEvent : 1;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 inline bool isHTMLMediaElement(const HTMLElement& element) 630 inline bool isHTMLMediaElement(const HTMLElement& element)
634 { 631 {
635 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 632 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
636 } 633 }
637 634
638 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 635 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
639 636
640 } // namespace blink 637 } // namespace blink
641 638
642 #endif // HTMLMediaElement_h 639 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698