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

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

Issue 5527003: Rename MediaFilter and MediaFilterCollection to Filter and FilterCollection, respectively. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: Missed a few more Created 10 years 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
« no previous file with comments | « webkit/support/webkit_support.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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
11 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/process_util.h" 14 #include "base/process_util.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/string_number_conversions.h" 17 #include "base/string_number_conversions.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "gfx/native_widget_types.h" 19 #include "gfx/native_widget_types.h"
20 #include "gfx/point.h" 20 #include "gfx/point.h"
21 #include "media/base/filter_collection.h"
21 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
22 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" 23 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h"
23 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" 24 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h"
24 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" 25 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h"
25 #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationClientMo ck.h" 26 #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationClientMo ck.h"
26 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" 27 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" 28 #include "third_party/WebKit/WebKit/chromium/public/WebData.h"
28 #include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h" 29 #include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h"
29 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h" 30 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h"
30 #include "third_party/WebKit/WebKit/chromium/public/WebHistoryItem.h" 31 #include "third_party/WebKit/WebKit/chromium/public/WebHistoryItem.h"
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 frame, params, info.path, actual_mime_type, AsWeakPtr()); 719 frame, params, info.path, actual_mime_type, AsWeakPtr());
719 } 720 }
720 721
721 WebWorker* TestWebViewDelegate::createWorker( 722 WebWorker* TestWebViewDelegate::createWorker(
722 WebFrame* frame, WebWorkerClient* client) { 723 WebFrame* frame, WebWorkerClient* client) {
723 return new TestWebWorker(); 724 return new TestWebWorker();
724 } 725 }
725 726
726 WebMediaPlayer* TestWebViewDelegate::createMediaPlayer( 727 WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
727 WebFrame* frame, WebMediaPlayerClient* client) { 728 WebFrame* frame, WebMediaPlayerClient* client) {
728 scoped_ptr<media::MediaFilterCollection> collection( 729 scoped_ptr<media::FilterCollection> collection(
729 new media::MediaFilterCollection()); 730 new media::FilterCollection());
730 731
731 // TODO(annacc): do we still need appcache_host? http://crbug.com/65135 732 // TODO(annacc): do we still need appcache_host? http://crbug.com/65135
732 // appcache::WebApplicationCacheHostImpl* appcache_host = 733 // appcache::WebApplicationCacheHostImpl* appcache_host =
733 // appcache::WebApplicationCacheHostImpl::FromFrame(frame); 734 // appcache::WebApplicationCacheHostImpl::FromFrame(frame);
734 735
735 scoped_refptr<webkit_glue::VideoRendererImpl> video_renderer( 736 scoped_refptr<webkit_glue::VideoRendererImpl> video_renderer(
736 new webkit_glue::VideoRendererImpl(false)); 737 new webkit_glue::VideoRendererImpl(false));
737 collection->AddVideoRenderer(video_renderer); 738 collection->AddVideoRenderer(video_renderer);
738 739
739 scoped_ptr<webkit_glue::WebMediaPlayerImpl> result( 740 scoped_ptr<webkit_glue::WebMediaPlayerImpl> result(
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1337 } 1338 }
1338 1339
1339 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1340 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1340 fake_rect_ = rect; 1341 fake_rect_ = rect;
1341 using_fake_rect_ = true; 1342 using_fake_rect_ = true;
1342 } 1343 }
1343 1344
1344 WebRect TestWebViewDelegate::fake_window_rect() { 1345 WebRect TestWebViewDelegate::fake_window_rect() {
1345 return fake_rect_; 1346 return fake_rect_;
1346 } 1347 }
OLDNEW
« no previous file with comments | « webkit/support/webkit_support.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698