OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "WebMediaPlayerClientImpl.h" | 6 #include "WebMediaPlayerClientImpl.h" |
7 | 7 |
8 #include "InbandTextTrackPrivateImpl.h" | 8 #include "InbandTextTrackPrivateImpl.h" |
9 #include "MediaSourcePrivateImpl.h" | 9 #include "MediaSourcePrivateImpl.h" |
10 #include "WebDocument.h" | 10 #include "WebDocument.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "SkGrPixelRef.h" | 43 #include "SkGrPixelRef.h" |
44 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" | 44 #include "core/platform/graphics/gpu/SharedGraphicsContext3D.h" |
45 #endif | 45 #endif |
46 | 46 |
47 | 47 |
48 #include "wtf/Assertions.h" | 48 #include "wtf/Assertions.h" |
49 #include "wtf/text/CString.h" | 49 #include "wtf/text/CString.h" |
50 | 50 |
51 using namespace WebCore; | 51 using namespace WebCore; |
52 | 52 |
53 namespace WebKit { | 53 namespace blink { |
54 | 54 |
55 static PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(WebMediaPlayerClient* cli
ent, const WebURL& url, Frame* frame) | 55 static PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(WebMediaPlayerClient* cli
ent, const WebURL& url, Frame* frame) |
56 { | 56 { |
57 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(frame); | 57 WebFrameImpl* webFrame = WebFrameImpl::fromFrame(frame); |
58 | 58 |
59 if (!webFrame->client()) | 59 if (!webFrame->client()) |
60 return nullptr; | 60 return nullptr; |
61 return adoptPtr(webFrame->client()->createMediaPlayer(webFrame, url, client)
); | 61 return adoptPtr(webFrame->client()->createMediaPlayer(webFrame, url, client)
); |
62 } | 62 } |
63 | 63 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 } | 752 } |
753 | 753 |
754 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) | 754 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) |
755 { | 755 { |
756 if (m_client) | 756 if (m_client) |
757 m_client->setFormat(numberOfChannels, sampleRate); | 757 m_client->setFormat(numberOfChannels, sampleRate); |
758 } | 758 } |
759 | 759 |
760 #endif | 760 #endif |
761 | 761 |
762 } // namespace WebKit | 762 } // namespace blink |
OLD | NEW |