| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 using WebKit::WebTextDirection; | 121 using WebKit::WebTextDirection; |
| 122 using WebKit::WebURL; | 122 using WebKit::WebURL; |
| 123 using WebKit::WebURLError; | 123 using WebKit::WebURLError; |
| 124 using WebKit::WebURLRequest; | 124 using WebKit::WebURLRequest; |
| 125 using WebKit::WebURLResponse; | 125 using WebKit::WebURLResponse; |
| 126 using WebKit::WebWidget; | 126 using WebKit::WebWidget; |
| 127 using WebKit::WebWindowFeatures; | 127 using WebKit::WebWindowFeatures; |
| 128 using WebKit::WebWorker; | 128 using WebKit::WebWorker; |
| 129 using WebKit::WebVector; | 129 using WebKit::WebVector; |
| 130 using WebKit::WebView; | 130 using WebKit::WebView; |
| 131 using webkit_glue::WebPreferences; |
| 131 | 132 |
| 132 namespace { | 133 namespace { |
| 133 | 134 |
| 134 // WebNavigationType debugging strings taken from PolicyDelegate.mm. | 135 // WebNavigationType debugging strings taken from PolicyDelegate.mm. |
| 135 const char* kLinkClickedString = "link clicked"; | 136 const char* kLinkClickedString = "link clicked"; |
| 136 const char* kFormSubmittedString = "form submitted"; | 137 const char* kFormSubmittedString = "form submitted"; |
| 137 const char* kBackForwardString = "back/forward"; | 138 const char* kBackForwardString = "back/forward"; |
| 138 const char* kReloadString = "reload"; | 139 const char* kReloadString = "reload"; |
| 139 const char* kFormResubmittedString = "form resubmitted"; | 140 const char* kFormResubmittedString = "form resubmitted"; |
| 140 const char* kOtherString = "other"; | 141 const char* kOtherString = "other"; |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1150 } | 1151 } |
| 1151 | 1152 |
| 1152 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1153 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
| 1153 fake_rect_ = rect; | 1154 fake_rect_ = rect; |
| 1154 using_fake_rect_ = true; | 1155 using_fake_rect_ = true; |
| 1155 } | 1156 } |
| 1156 | 1157 |
| 1157 WebRect TestWebViewDelegate::fake_window_rect() { | 1158 WebRect TestWebViewDelegate::fake_window_rect() { |
| 1158 return fake_rect_; | 1159 return fake_rect_; |
| 1159 } | 1160 } |
| OLD | NEW |