| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "config.h" | 9 #include "config.h" |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 using WebKit::WebNavigationType; | 76 using WebKit::WebNavigationType; |
| 77 using WebKit::WebNavigationPolicy; | 77 using WebKit::WebNavigationPolicy; |
| 78 using WebKit::WebNode; | 78 using WebKit::WebNode; |
| 79 using WebKit::WebPlugin; | 79 using WebKit::WebPlugin; |
| 80 using WebKit::WebPluginParams; | 80 using WebKit::WebPluginParams; |
| 81 using WebKit::WebPoint; | 81 using WebKit::WebPoint; |
| 82 using WebKit::WebPopupMenu; | 82 using WebKit::WebPopupMenu; |
| 83 using WebKit::WebRange; | 83 using WebKit::WebRange; |
| 84 using WebKit::WebRect; | 84 using WebKit::WebRect; |
| 85 using WebKit::WebScreenInfo; | 85 using WebKit::WebScreenInfo; |
| 86 using WebKit::WebSecurityOrigin; |
| 86 using WebKit::WebSize; | 87 using WebKit::WebSize; |
| 87 using WebKit::WebString; | 88 using WebKit::WebString; |
| 88 using WebKit::WebTextAffinity; | 89 using WebKit::WebTextAffinity; |
| 89 using WebKit::WebTextDirection; | 90 using WebKit::WebTextDirection; |
| 90 using WebKit::WebURL; | 91 using WebKit::WebURL; |
| 91 using WebKit::WebURLError; | 92 using WebKit::WebURLError; |
| 92 using WebKit::WebURLRequest; | 93 using WebKit::WebURLRequest; |
| 93 using WebKit::WebURLResponse; | 94 using WebKit::WebURLResponse; |
| 94 using WebKit::WebWidget; | 95 using WebKit::WebWidget; |
| 95 using WebKit::WebWorker; | 96 using WebKit::WebWorker; |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 WebFrame* frame, const WebURLRequest&, | 924 WebFrame* frame, const WebURLRequest&, |
| 924 const WebURLResponse&) { | 925 const WebURLResponse&) { |
| 925 } | 926 } |
| 926 | 927 |
| 927 void TestWebViewDelegate::didDisplayInsecureContent(WebFrame* frame) { | 928 void TestWebViewDelegate::didDisplayInsecureContent(WebFrame* frame) { |
| 928 if (shell_->ShouldDumpFrameLoadCallbacks()) | 929 if (shell_->ShouldDumpFrameLoadCallbacks()) |
| 929 printf("didDisplayInsecureContent\n"); | 930 printf("didDisplayInsecureContent\n"); |
| 930 } | 931 } |
| 931 | 932 |
| 932 void TestWebViewDelegate::didRunInsecureContent( | 933 void TestWebViewDelegate::didRunInsecureContent( |
| 933 WebFrame* frame, const WebString& security_origin) { | 934 WebFrame* frame, const WebSecurityOrigin& origin) { |
| 934 if (shell_->ShouldDumpFrameLoadCallbacks()) | 935 if (shell_->ShouldDumpFrameLoadCallbacks()) |
| 935 printf("didRunInsecureContent\n"); | 936 printf("didRunInsecureContent\n"); |
| 936 } | 937 } |
| 937 | 938 |
| 938 void TestWebViewDelegate::didExhaustMemoryAvailableForScript(WebFrame* frame) { | 939 void TestWebViewDelegate::didExhaustMemoryAvailableForScript(WebFrame* frame) { |
| 939 } | 940 } |
| 940 | 941 |
| 941 void TestWebViewDelegate::didChangeContentsSize( | 942 void TestWebViewDelegate::didChangeContentsSize( |
| 942 WebFrame* frame, const WebSize&) { | 943 WebFrame* frame, const WebSize&) { |
| 943 } | 944 } |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1126 return L"main frame \"" + name + L"\""; | 1127 return L"main frame \"" + name + L"\""; |
| 1127 else | 1128 else |
| 1128 return L"main frame"; | 1129 return L"main frame"; |
| 1129 } else { | 1130 } else { |
| 1130 if (name.length()) | 1131 if (name.length()) |
| 1131 return L"frame \"" + name + L"\""; | 1132 return L"frame \"" + name + L"\""; |
| 1132 else | 1133 else |
| 1133 return L"frame (anonymous)"; | 1134 return L"frame (anonymous)"; |
| 1134 } | 1135 } |
| 1135 } | 1136 } |
| OLD | NEW |