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

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 8980008: Integrate HTMLMediaElement with Web Audio API's MediaElementAudioSourceNode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains the implementation of TestWebViewDelegate, which serves 5 // This file contains the implementation of TestWebViewDelegate, which serves
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to
7 // have initialized a MessageLoop before these methods are called. 7 // have initialized a MessageLoop before these methods are called.
8 8
9 #include "webkit/tools/test_shell/test_webview_delegate.h" 9 #include "webkit/tools/test_shell/test_webview_delegate.h"
10 10
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 new media::MessageLoopFactoryImpl()); 645 new media::MessageLoopFactoryImpl());
646 646
647 scoped_ptr<media::FilterCollection> collection( 647 scoped_ptr<media::FilterCollection> collection(
648 new media::FilterCollection()); 648 new media::FilterCollection());
649 649
650 scoped_ptr<webkit_media::WebMediaPlayerImpl> result( 650 scoped_ptr<webkit_media::WebMediaPlayerImpl> result(
651 new webkit_media::WebMediaPlayerImpl( 651 new webkit_media::WebMediaPlayerImpl(
652 client, 652 client,
653 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(), 653 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(),
654 collection.release(), 654 collection.release(),
655 NULL,
655 message_loop_factory.release(), 656 message_loop_factory.release(),
656 NULL, 657 NULL,
657 new media::MediaLog())); 658 new media::MediaLog()));
658 if (!result->Initialize(frame, false)) { 659 if (!result->Initialize(frame, false)) {
659 return NULL; 660 return NULL;
660 } 661 }
661 return result.release(); 662 return result.release();
662 } 663 }
663 664
664 WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost( 665 WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost(
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 } 1156 }
1156 1157
1157 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1158 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1158 fake_rect_ = rect; 1159 fake_rect_ = rect;
1159 using_fake_rect_ = true; 1160 using_fake_rect_ = true;
1160 } 1161 }
1161 1162
1162 WebRect TestWebViewDelegate::fake_window_rect() { 1163 WebRect TestWebViewDelegate::fake_window_rect() {
1163 return fake_rect_; 1164 return fake_rect_;
1164 } 1165 }
OLDNEW
« webkit/media/webmediaplayer_impl.h ('K') | « webkit/support/webkit_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698