| 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 WebFrame* frame, WebFileSystem::Type type, long long size, bool create, | 816 WebFrame* frame, WebFileSystem::Type type, long long size, bool create, |
| 817 WebFileSystemCallbacks* callbacks) { | 817 WebFileSystemCallbacks* callbacks) { |
| 818 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>( | 818 SimpleFileSystem* fileSystem = static_cast<SimpleFileSystem*>( |
| 819 WebKit::Platform::current()->fileSystem()); | 819 WebKit::Platform::current()->fileSystem()); |
| 820 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); | 820 fileSystem->OpenFileSystem(frame, type, size, create, callbacks); |
| 821 } | 821 } |
| 822 | 822 |
| 823 // WebPluginPageDelegate ----------------------------------------------------- | 823 // WebPluginPageDelegate ----------------------------------------------------- |
| 824 | 824 |
| 825 WebKit::WebPlugin* TestWebViewDelegate::CreatePluginReplacement( | 825 WebKit::WebPlugin* TestWebViewDelegate::CreatePluginReplacement( |
| 826 const FilePath& file_path) { | 826 const base::FilePath& file_path) { |
| 827 return NULL; | 827 return NULL; |
| 828 } | 828 } |
| 829 | 829 |
| 830 WebCookieJar* TestWebViewDelegate::GetCookieJar() { | 830 WebCookieJar* TestWebViewDelegate::GetCookieJar() { |
| 831 return WebKit::Platform::current()->cookieJar(); | 831 return WebKit::Platform::current()->cookieJar(); |
| 832 } | 832 } |
| 833 | 833 |
| 834 // Public methods ------------------------------------------------------------ | 834 // Public methods ------------------------------------------------------------ |
| 835 | 835 |
| 836 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) | 836 TestWebViewDelegate::TestWebViewDelegate(TestShell* shell) |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1027 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
| 1028 fake_rect_ = rect; | 1028 fake_rect_ = rect; |
| 1029 using_fake_rect_ = true; | 1029 using_fake_rect_ = true; |
| 1030 } | 1030 } |
| 1031 | 1031 |
| 1032 WebRect TestWebViewDelegate::fake_window_rect() { | 1032 WebRect TestWebViewDelegate::fake_window_rect() { |
| 1033 return fake_rect_; | 1033 return fake_rect_; |
| 1034 } | 1034 } |
| OLD | NEW |