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

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

Issue 8416029: Removing dedicated worker-related IPC code (second round). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Style nit Created 9 years, 1 month 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
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "webkit/glue/window_open_disposition.h" 68 #include "webkit/glue/window_open_disposition.h"
69 #include "webkit/plugins/npapi/webplugin_impl.h" 69 #include "webkit/plugins/npapi/webplugin_impl.h"
70 #include "webkit/plugins/npapi/plugin_list.h" 70 #include "webkit/plugins/npapi/plugin_list.h"
71 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" 71 #include "webkit/plugins/npapi/webplugin_delegate_impl.h"
72 #include "webkit/tools/test_shell/mock_spellcheck.h" 72 #include "webkit/tools/test_shell/mock_spellcheck.h"
73 #include "webkit/tools/test_shell/notification_presenter.h" 73 #include "webkit/tools/test_shell/notification_presenter.h"
74 #include "webkit/tools/test_shell/simple_appcache_system.h" 74 #include "webkit/tools/test_shell/simple_appcache_system.h"
75 #include "webkit/tools/test_shell/simple_file_system.h" 75 #include "webkit/tools/test_shell/simple_file_system.h"
76 #include "webkit/tools/test_shell/test_navigation_controller.h" 76 #include "webkit/tools/test_shell/test_navigation_controller.h"
77 #include "webkit/tools/test_shell/test_shell.h" 77 #include "webkit/tools/test_shell/test_shell.h"
78 #include "webkit/tools/test_shell/test_web_worker.h"
79 78
80 #if defined(OS_WIN) 79 #if defined(OS_WIN)
81 // TODO(port): make these files work everywhere. 80 // TODO(port): make these files work everywhere.
82 #include "webkit/tools/test_shell/drop_delegate.h" 81 #include "webkit/tools/test_shell/drop_delegate.h"
83 #endif 82 #endif
84 83
85 using appcache::WebApplicationCacheHostImpl; 84 using appcache::WebApplicationCacheHostImpl;
86 using WebKit::WebAccessibilityObject; 85 using WebKit::WebAccessibilityObject;
87 using WebKit::WebApplicationCacheHost; 86 using WebKit::WebApplicationCacheHost;
88 using WebKit::WebApplicationCacheHostClient; 87 using WebKit::WebApplicationCacheHostClient;
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 return new webkit::npapi::WebPluginImpl( 632 return new webkit::npapi::WebPluginImpl(
634 frame, params_copy, plugins.front().path, AsWeakPtr()); 633 frame, params_copy, plugins.front().path, AsWeakPtr());
635 } 634 }
636 } 635 }
637 #endif // defined (OS_MACOSX) 636 #endif // defined (OS_MACOSX)
638 637
639 return new webkit::npapi::WebPluginImpl( 638 return new webkit::npapi::WebPluginImpl(
640 frame, params, plugins.front().path, AsWeakPtr()); 639 frame, params, plugins.front().path, AsWeakPtr());
641 } 640 }
642 641
643 WebWorker* TestWebViewDelegate::createWorker(WebFrame* frame,
644 WebWorkerClient* client) {
645 return new TestWebWorker();
646 }
647
648 WebMediaPlayer* TestWebViewDelegate::createMediaPlayer( 642 WebMediaPlayer* TestWebViewDelegate::createMediaPlayer(
649 WebFrame* frame, WebMediaPlayerClient* client) { 643 WebFrame* frame, WebMediaPlayerClient* client) {
650 scoped_ptr<media::MessageLoopFactory> message_loop_factory( 644 scoped_ptr<media::MessageLoopFactory> message_loop_factory(
651 new media::MessageLoopFactoryImpl()); 645 new media::MessageLoopFactoryImpl());
652 646
653 scoped_ptr<media::FilterCollection> collection( 647 scoped_ptr<media::FilterCollection> collection(
654 new media::FilterCollection()); 648 new media::FilterCollection());
655 649
656 scoped_refptr<webkit_glue::VideoRendererImpl> video_renderer( 650 scoped_refptr<webkit_glue::VideoRendererImpl> video_renderer(
657 new webkit_glue::VideoRendererImpl(false)); 651 new webkit_glue::VideoRendererImpl(false));
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 } 1155 }
1162 1156
1163 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1157 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1164 fake_rect_ = rect; 1158 fake_rect_ = rect;
1165 using_fake_rect_ = true; 1159 using_fake_rect_ = true;
1166 } 1160 }
1167 1161
1168 WebRect TestWebViewDelegate::fake_window_rect() { 1162 WebRect TestWebViewDelegate::fake_window_rect() {
1169 return fake_rect_; 1163 return fake_rect_;
1170 } 1164 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698