OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 #include "core/dom/ActiveDOMObject.h" | 29 #include "core/dom/ActiveDOMObject.h" |
30 #include "core/events/GenericEventQueue.h" | 30 #include "core/events/GenericEventQueue.h" |
31 #include "core/html/HTMLElement.h" | 31 #include "core/html/HTMLElement.h" |
32 #include "core/html/MediaControllerInterface.h" | 32 #include "core/html/MediaControllerInterface.h" |
33 #include "core/html/track/TextTrack.h" | 33 #include "core/html/track/TextTrack.h" |
34 #include "core/html/track/TextTrackCue.h" | 34 #include "core/html/track/TextTrackCue.h" |
35 #include "platform/PODIntervalTree.h" | 35 #include "platform/PODIntervalTree.h" |
36 #include "platform/graphics/media/MediaPlayer.h" | 36 #include "platform/graphics/media/MediaPlayer.h" |
37 #include "public/platform/WebMimeRegistry.h" | 37 #include "public/platform/WebMimeRegistry.h" |
38 | 38 |
39 namespace WebKit { class WebLayer; } | 39 namespace blink { class WebLayer; } |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 #if ENABLE(WEB_AUDIO) | 43 #if ENABLE(WEB_AUDIO) |
44 class AudioSourceProvider; | 44 class AudioSourceProvider; |
45 class MediaElementAudioSourceNode; | 45 class MediaElementAudioSourceNode; |
46 #endif | 46 #endif |
47 class ContentType; | 47 class ContentType; |
48 class Event; | 48 class Event; |
49 class ExceptionState; | 49 class ExceptionState; |
(...skipping 17 matching lines...) Expand all Loading... |
67 typedef Vector<CueInterval> CueList; | 67 typedef Vector<CueInterval> CueList; |
68 | 68 |
69 // FIXME: The inheritance from MediaPlayerClient here should be private inherita
nce. | 69 // FIXME: The inheritance from MediaPlayerClient here should be private inherita
nce. |
70 // But it can't be until the Chromium WebMediaPlayerClientImpl class is fixed so
it | 70 // But it can't be until the Chromium WebMediaPlayerClientImpl class is fixed so
it |
71 // no longer depends on typecasting a MediaPlayerClient to an HTMLMediaElement. | 71 // no longer depends on typecasting a MediaPlayerClient to an HTMLMediaElement. |
72 | 72 |
73 class HTMLMediaElement : public HTMLElement, public MediaPlayerClient, public Ac
tiveDOMObject, public MediaControllerInterface | 73 class HTMLMediaElement : public HTMLElement, public MediaPlayerClient, public Ac
tiveDOMObject, public MediaControllerInterface |
74 , private TextTrackClient | 74 , private TextTrackClient |
75 { | 75 { |
76 public: | 76 public: |
77 static WebKit::WebMimeRegistry::SupportsType supportsType(const ContentType&
, const String& keySystem = String()); | 77 static blink::WebMimeRegistry::SupportsType supportsType(const ContentType&,
const String& keySystem = String()); |
78 | 78 |
79 MediaPlayer* player() const { return m_player.get(); } | 79 MediaPlayer* player() const { return m_player.get(); } |
80 | 80 |
81 virtual bool isVideo() const = 0; | 81 virtual bool isVideo() const = 0; |
82 virtual bool hasVideo() const OVERRIDE { return false; } | 82 virtual bool hasVideo() const OVERRIDE { return false; } |
83 virtual bool hasAudio() const OVERRIDE; | 83 virtual bool hasAudio() const OVERRIDE; |
84 | 84 |
85 // Eventually overloaded in HTMLVideoElement | 85 // Eventually overloaded in HTMLVideoElement |
86 virtual bool supportsFullscreen() const OVERRIDE { return false; }; | 86 virtual bool supportsFullscreen() const OVERRIDE { return false; }; |
87 | 87 |
88 bool supportsSave() const; | 88 bool supportsSave() const; |
89 | 89 |
90 WebKit::WebLayer* platformLayer() const; | 90 blink::WebLayer* platformLayer() const; |
91 | 91 |
92 enum DelayedActionType { | 92 enum DelayedActionType { |
93 LoadMediaResource = 1 << 0, | 93 LoadMediaResource = 1 << 0, |
94 LoadTextTrackResource = 1 << 1, | 94 LoadTextTrackResource = 1 << 1, |
95 TextTrackChangesNotification = 1 << 2 | 95 TextTrackChangesNotification = 1 << 2 |
96 }; | 96 }; |
97 void scheduleDelayedAction(DelayedActionType); | 97 void scheduleDelayedAction(DelayedActionType); |
98 | 98 |
99 bool isActive() const { return m_active; } | 99 bool isActive() const { return m_active; } |
100 | 100 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 inline bool isHTMLMediaElement(const Node& node) | 596 inline bool isHTMLMediaElement(const Node& node) |
597 { | 597 { |
598 return node.isElementNode() && toElement(node).isMediaElement(); | 598 return node.isElementNode() && toElement(node).isMediaElement(); |
599 } | 599 } |
600 | 600 |
601 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 601 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
602 | 602 |
603 } //namespace | 603 } //namespace |
604 | 604 |
605 #endif | 605 #endif |
OLD | NEW |