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 |
11 #undef LOG | 11 #undef LOG |
12 | 12 |
13 #include "webkit/tools/test_shell/test_webview_delegate.h" | 13 #include "webkit/tools/test_shell/test_webview_delegate.h" |
14 | 14 |
15 #include "app/gfx/native_widget_types.h" | 15 #include "app/gfx/native_widget_types.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/gfx/point.h" | 17 #include "base/gfx/point.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/process_util.h" | 19 #include "base/process_util.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
21 #include "base/trace_event.h" | 21 #include "base/trace_event.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "webkit/api/public/WebAccessibilityObject.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" |
24 #include "webkit/api/public/WebConsoleMessage.h" | 24 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" |
25 #include "webkit/api/public/WebContextMenuData.h" | 25 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h" |
26 #include "webkit/api/public/WebCString.h" | 26 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" |
27 #include "webkit/api/public/WebData.h" | 27 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
28 #include "webkit/api/public/WebDataSource.h" | 28 #include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h" |
29 #include "webkit/api/public/WebDragData.h" | 29 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h" |
30 #include "webkit/api/public/WebHistoryItem.h" | 30 #include "third_party/WebKit/WebKit/chromium/public/WebHistoryItem.h" |
31 #include "webkit/api/public/WebFrame.h" | 31 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
32 #include "webkit/api/public/WebKit.h" | 32 #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" |
33 #include "webkit/api/public/WebNode.h" | 33 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h" |
34 #include "webkit/api/public/WebPoint.h" | 34 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h" |
35 #include "webkit/api/public/WebPopupMenu.h" | 35 #include "third_party/WebKit/WebKit/chromium/public/WebPopupMenu.h" |
36 #include "webkit/api/public/WebRange.h" | 36 #include "third_party/WebKit/WebKit/chromium/public/WebRange.h" |
37 #include "webkit/api/public/WebScreenInfo.h" | 37 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h" |
38 #include "webkit/api/public/WebString.h" | 38 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
39 #include "webkit/api/public/WebURL.h" | 39 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
40 #include "webkit/api/public/WebURLError.h" | 40 #include "third_party/WebKit/WebKit/chromium/public/WebURLError.h" |
41 #include "webkit/api/public/WebURLRequest.h" | 41 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
42 #include "webkit/api/public/WebURLResponse.h" | 42 #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" |
43 #include "webkit/api/public/WebView.h" | 43 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
44 #include "webkit/appcache/appcache_interfaces.h" | 44 #include "webkit/appcache/appcache_interfaces.h" |
45 #include "webkit/glue/glue_serialize.h" | 45 #include "webkit/glue/glue_serialize.h" |
46 #include "webkit/glue/glue_util.h" | 46 #include "webkit/glue/glue_util.h" |
47 #include "webkit/glue/media/buffered_data_source.h" | 47 #include "webkit/glue/media/buffered_data_source.h" |
48 #include "webkit/glue/media/media_resource_loader_bridge_factory.h" | 48 #include "webkit/glue/media/media_resource_loader_bridge_factory.h" |
49 #include "webkit/glue/media/simple_data_source.h" | 49 #include "webkit/glue/media/simple_data_source.h" |
50 #include "webkit/glue/webdropdata.h" | 50 #include "webkit/glue/webdropdata.h" |
51 #include "webkit/glue/webplugin_impl.h" | 51 #include "webkit/glue/webplugin_impl.h" |
52 #include "webkit/glue/webpreferences.h" | 52 #include "webkit/glue/webpreferences.h" |
53 #include "webkit/glue/webkit_glue.h" | 53 #include "webkit/glue/webkit_glue.h" |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 } | 1153 } |
1154 | 1154 |
1155 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1155 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
1156 fake_rect_ = rect; | 1156 fake_rect_ = rect; |
1157 using_fake_rect_ = true; | 1157 using_fake_rect_ = true; |
1158 } | 1158 } |
1159 | 1159 |
1160 WebRect TestWebViewDelegate::fake_window_rect() { | 1160 WebRect TestWebViewDelegate::fake_window_rect() { |
1161 return fake_rect_; | 1161 return fake_rect_; |
1162 } | 1162 } |
OLD | NEW |