| 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 "web/WebMediaPlayerClientImpl.h" | 6 #include "web/WebMediaPlayerClientImpl.h" |
| 7 | 7 |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/html/HTMLMediaElement.h" | 9 #include "core/html/HTMLMediaElement.h" |
| 10 #include "core/html/TimeRanges.h" | 10 #include "core/html/TimeRanges.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "public/platform/WebInbandTextTrack.h" | 27 #include "public/platform/WebInbandTextTrack.h" |
| 28 #include "public/platform/WebMediaPlayer.h" | 28 #include "public/platform/WebMediaPlayer.h" |
| 29 #include "public/platform/WebRect.h" | 29 #include "public/platform/WebRect.h" |
| 30 #include "public/platform/WebString.h" | 30 #include "public/platform/WebString.h" |
| 31 #include "public/platform/WebURL.h" | 31 #include "public/platform/WebURL.h" |
| 32 #include "public/web/WebDocument.h" | 32 #include "public/web/WebDocument.h" |
| 33 #include "public/web/WebFrameClient.h" | 33 #include "public/web/WebFrameClient.h" |
| 34 #include "web/WebLocalFrameImpl.h" | 34 #include "web/WebLocalFrameImpl.h" |
| 35 #include "web/WebViewImpl.h" | 35 #include "web/WebViewImpl.h" |
| 36 | 36 |
| 37 #if OS(ANDROID) | |
| 38 #include "GrContext.h" | |
| 39 #include "GrTypes.h" | |
| 40 #include "SkCanvas.h" | |
| 41 #include "SkGrPixelRef.h" | |
| 42 #endif | |
| 43 | |
| 44 | |
| 45 #include "wtf/Assertions.h" | 37 #include "wtf/Assertions.h" |
| 46 #include "wtf/text/CString.h" | 38 #include "wtf/text/CString.h" |
| 47 | 39 |
| 48 namespace blink { | 40 namespace blink { |
| 49 | 41 |
| 50 static PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(WebMediaPlayerClient* cli
ent, const WebURL& url, LocalFrame* frame, WebContentDecryptionModule* initialCd
m) | 42 static PassOwnPtr<WebMediaPlayer> createWebMediaPlayer(WebMediaPlayerClient* cli
ent, const WebURL& url, LocalFrame* frame, WebContentDecryptionModule* initialCd
m) |
| 51 { | 43 { |
| 52 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); | 44 WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame); |
| 53 | 45 |
| 54 if (!webFrame || !webFrame->client()) | 46 if (!webFrame || !webFrame->client()) |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 } | 307 } |
| 316 | 308 |
| 317 DEFINE_TRACE(WebMediaPlayerClientImpl::AudioClientImpl) | 309 DEFINE_TRACE(WebMediaPlayerClientImpl::AudioClientImpl) |
| 318 { | 310 { |
| 319 visitor->trace(m_client); | 311 visitor->trace(m_client); |
| 320 } | 312 } |
| 321 | 313 |
| 322 #endif | 314 #endif |
| 323 | 315 |
| 324 } // namespace blink | 316 } // namespace blink |
| OLD | NEW |