Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 12036003: Move window_open_disposition.h from webkit/ into ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_number_conversions.h"
15 #include "base/string_util.h" 16 #include "base/string_util.h"
16 #include "base/stringprintf.h" 17 #include "base/stringprintf.h"
17 #include "base/string_number_conversions.h"
18 #include "base/utf_string_conversions.h" 18 #include "base/utf_string_conversions.h"
19 #include "media/base/filter_collection.h" 19 #include "media/base/filter_collection.h"
20 #include "media/base/media_log.h" 20 #include "media/base/media_log.h"
21 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
22 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" 22 #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h"
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h"
24 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h"
25 #include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h" 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h"
26 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h" 26 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
27 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" 27 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
28 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 28 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
29 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" 29 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
30 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" 30 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h"
31 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h" 31 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLRequest.h"
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h" 32 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLResponse.h"
33 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" 33 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h" 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec t.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lientMock.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDeviceOrientationC lientMock.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileError.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClientM ock.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGeolocationClientM ock.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h"
50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h"
51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h " 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h "
53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h"
55 #include "ui/base/window_open_disposition.h"
55 #include "ui/gfx/native_widget_types.h" 56 #include "ui/gfx/native_widget_types.h"
56 #include "ui/gfx/point.h" 57 #include "ui/gfx/point.h"
57 #include "webkit/appcache/web_application_cache_host_impl.h" 58 #include "webkit/appcache/web_application_cache_host_impl.h"
58 #include "webkit/glue/glue_serialize.h" 59 #include "webkit/glue/glue_serialize.h"
59 #include "webkit/glue/webdropdata.h" 60 #include "webkit/glue/webdropdata.h"
60 #include "webkit/glue/webkit_glue.h" 61 #include "webkit/glue/webkit_glue.h"
61 #include "webkit/glue/webpreferences.h" 62 #include "webkit/glue/webpreferences.h"
62 #include "webkit/glue/weburlrequest_extradata_impl.h" 63 #include "webkit/glue/weburlrequest_extradata_impl.h"
63 #include "webkit/glue/window_open_disposition.h"
64 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 64 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
65 #include "webkit/media/webmediaplayer_impl.h" 65 #include "webkit/media/webmediaplayer_impl.h"
66 #include "webkit/media/webmediaplayer_params.h" 66 #include "webkit/media/webmediaplayer_params.h"
67 #include "webkit/plugins/npapi/webplugin_impl.h"
68 #include "webkit/plugins/npapi/plugin_list.h" 67 #include "webkit/plugins/npapi/plugin_list.h"
69 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" 68 #include "webkit/plugins/npapi/webplugin_delegate_impl.h"
69 #include "webkit/plugins/npapi/webplugin_impl.h"
70 #include "webkit/tools/test_shell/mock_spellcheck.h" 70 #include "webkit/tools/test_shell/mock_spellcheck.h"
71 #include "webkit/tools/test_shell/notification_presenter.h" 71 #include "webkit/tools/test_shell/notification_presenter.h"
72 #include "webkit/tools/test_shell/simple_appcache_system.h" 72 #include "webkit/tools/test_shell/simple_appcache_system.h"
73 #include "webkit/tools/test_shell/simple_dom_storage_system.h" 73 #include "webkit/tools/test_shell/simple_dom_storage_system.h"
74 #include "webkit/tools/test_shell/simple_file_system.h" 74 #include "webkit/tools/test_shell/simple_file_system.h"
75 #include "webkit/tools/test_shell/test_navigation_controller.h" 75 #include "webkit/tools/test_shell/test_navigation_controller.h"
76 #include "webkit/tools/test_shell/test_shell.h" 76 #include "webkit/tools/test_shell/test_shell.h"
77 77
78 #if defined(OS_WIN) 78 #if defined(OS_WIN)
79 // TODO(port): make these files work everywhere. 79 // TODO(port): make these files work everywhere.
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_test.h ('k') | webkit/tools/test_shell/test_webview_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698