OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "config.h" |
| 6 #include "webkit/api/src/TemporaryGlue.h" |
| 7 |
| 8 #include "webkit/glue/webview_impl.h" |
| 9 |
| 10 using WebCore::Frame; |
| 11 |
| 12 namespace WebKit { |
| 13 |
| 14 // static |
| 15 WebMediaPlayer* TemporaryGlue::createWebMediaPlayer( |
| 16 WebMediaPlayerClient* client, Frame* frame) { |
| 17 WebViewImpl* webview = WebFrameImpl::FromFrame(frame)->GetWebViewImpl(); |
| 18 if (!webview || !webview->delegate()) |
| 19 return NULL; |
| 20 |
| 21 return webview->delegate()->CreateWebMediaPlayer(client); |
| 22 } |
| 23 |
| 24 } // namespace WebKit |
OLD | NEW |