OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "gfx/native_widget_types.h" | |
20 #include "gfx/point.h" | |
21 #include "media/base/filter_collection.h" | 19 #include "media/base/filter_collection.h" |
22 #include "media/base/message_loop_factory_impl.h" | 20 #include "media/base/message_loop_factory_impl.h" |
23 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC
lientMock.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC
lientMock.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
(...skipping 17 matching lines...) Expand all Loading... |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputControl
lerMock.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputControl
lerMock.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputListene
r.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpeechInputListene
r.h" |
50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h
" |
51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" |
55 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLResponse.h" |
56 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
57 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" | 55 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" |
| 56 #include "ui/gfx/native_widget_types.h" |
| 57 #include "ui/gfx/point.h" |
58 #include "webkit/appcache/web_application_cache_host_impl.h" | 58 #include "webkit/appcache/web_application_cache_host_impl.h" |
59 #include "webkit/glue/glue_serialize.h" | 59 #include "webkit/glue/glue_serialize.h" |
60 #include "webkit/glue/media/video_renderer_impl.h" | 60 #include "webkit/glue/media/video_renderer_impl.h" |
61 #include "webkit/glue/webdropdata.h" | 61 #include "webkit/glue/webdropdata.h" |
62 #include "webkit/glue/webkit_glue.h" | 62 #include "webkit/glue/webkit_glue.h" |
63 #include "webkit/glue/webmediaplayer_impl.h" | 63 #include "webkit/glue/webmediaplayer_impl.h" |
64 #include "webkit/glue/webpreferences.h" | 64 #include "webkit/glue/webpreferences.h" |
65 #include "webkit/glue/window_open_disposition.h" | 65 #include "webkit/glue/window_open_disposition.h" |
66 #include "webkit/plugins/npapi/webplugin_impl.h" | 66 #include "webkit/plugins/npapi/webplugin_impl.h" |
67 #include "webkit/plugins/npapi/plugin_list.h" | 67 #include "webkit/plugins/npapi/plugin_list.h" |
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 } | 1323 } |
1324 | 1324 |
1325 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1325 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
1326 fake_rect_ = rect; | 1326 fake_rect_ = rect; |
1327 using_fake_rect_ = true; | 1327 using_fake_rect_ = true; |
1328 } | 1328 } |
1329 | 1329 |
1330 WebRect TestWebViewDelegate::fake_window_rect() { | 1330 WebRect TestWebViewDelegate::fake_window_rect() { |
1331 return fake_rect_; | 1331 return fake_rect_; |
1332 } | 1332 } |
OLD | NEW |