| OLD | NEW |
| 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 | 642 |
| 643 scoped_ptr<media::FilterCollection> collection( | 643 scoped_ptr<media::FilterCollection> collection( |
| 644 new media::FilterCollection()); | 644 new media::FilterCollection()); |
| 645 | 645 |
| 646 return new webkit_media::WebMediaPlayerImpl( | 646 return new webkit_media::WebMediaPlayerImpl( |
| 647 frame, | 647 frame, |
| 648 client, | 648 client, |
| 649 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(), | 649 base::WeakPtr<webkit_media::WebMediaPlayerDelegate>(), |
| 650 collection.release(), | 650 collection.release(), |
| 651 NULL, | 651 NULL, |
| 652 NULL, |
| 652 message_loop_factory.release(), | 653 message_loop_factory.release(), |
| 653 NULL, | 654 NULL, |
| 654 new media::MediaLog()); | 655 new media::MediaLog()); |
| 655 } | 656 } |
| 656 | 657 |
| 657 WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost( | 658 WebApplicationCacheHost* TestWebViewDelegate::createApplicationCacheHost( |
| 658 WebFrame* frame, WebApplicationCacheHostClient* client) { | 659 WebFrame* frame, WebApplicationCacheHostClient* client) { |
| 659 return SimpleAppCacheSystem::CreateApplicationCacheHost(client); | 660 return SimpleAppCacheSystem::CreateApplicationCacheHost(client); |
| 660 } | 661 } |
| 661 | 662 |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 } | 1140 } |
| 1140 | 1141 |
| 1141 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1142 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
| 1142 fake_rect_ = rect; | 1143 fake_rect_ = rect; |
| 1143 using_fake_rect_ = true; | 1144 using_fake_rect_ = true; |
| 1144 } | 1145 } |
| 1145 | 1146 |
| 1146 WebRect TestWebViewDelegate::fake_window_rect() { | 1147 WebRect TestWebViewDelegate::fake_window_rect() { |
| 1147 return fake_rect_; | 1148 return fake_rect_; |
| 1148 } | 1149 } |
| OLD | NEW |