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 // TestWebViewDelegate class: | 5 // TestWebViewDelegate class: |
6 // This class implements the WebViewDelegate methods for the test shell. One | 6 // This class implements the WebViewDelegate methods for the test shell. One |
7 // instance is owned by each TestShell. | 7 // instance is owned by each TestShell. |
8 | 8 |
9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/string16.h" | 20 #include "base/string16.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" | 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystem.h" |
| 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h
" |
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 24 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
24 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
29 #include "webkit/glue/webcursor.h" | 30 #include "webkit/glue/webcursor.h" |
30 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 31 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
31 #include "webkit/tools/test_shell/mock_spellcheck.h" | 32 #include "webkit/tools/test_shell/mock_spellcheck.h" |
32 #include "webkit/tools/test_shell/test_navigation_controller.h" | 33 #include "webkit/tools/test_shell/test_navigation_controller.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 virtual void didFailResourceLoad( | 223 virtual void didFailResourceLoad( |
223 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); | 224 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); |
224 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); | 225 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); |
225 virtual void didRunInsecureContent( | 226 virtual void didRunInsecureContent( |
226 WebKit::WebFrame* frame, | 227 WebKit::WebFrame* frame, |
227 const WebKit::WebSecurityOrigin& origin, | 228 const WebKit::WebSecurityOrigin& origin, |
228 const WebKit::WebURL& target_url); | 229 const WebKit::WebURL& target_url); |
229 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); | 230 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); |
230 virtual void openFileSystem( | 231 virtual void openFileSystem( |
231 WebKit::WebFrame* frame, | 232 WebKit::WebFrame* frame, |
| 233 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE |
| 234 WebKit::WebFileSystemType type, |
| 235 #else |
232 WebKit::WebFileSystem::Type type, | 236 WebKit::WebFileSystem::Type type, |
| 237 #endif |
233 long long size, | 238 long long size, |
234 bool create, | 239 bool create, |
235 WebKit::WebFileSystemCallbacks* callbacks); | 240 WebKit::WebFileSystemCallbacks* callbacks); |
236 | 241 |
237 // webkit::npapi::WebPluginPageDelegate | 242 // webkit::npapi::WebPluginPageDelegate |
238 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 243 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
239 const base::FilePath& url, | 244 const base::FilePath& url, |
240 const std::string& mime_type) OVERRIDE; | 245 const std::string& mime_type) OVERRIDE; |
241 virtual WebKit::WebPlugin* CreatePluginReplacement( | 246 virtual WebKit::WebPlugin* CreatePluginReplacement( |
242 const base::FilePath& file_path) OVERRIDE; | 247 const base::FilePath& file_path) OVERRIDE; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 std::string edit_command_name_; | 442 std::string edit_command_name_; |
438 std::string edit_command_value_; | 443 std::string edit_command_value_; |
439 | 444 |
440 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 445 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
441 MockSpellCheck mock_spellcheck_; | 446 MockSpellCheck mock_spellcheck_; |
442 | 447 |
443 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 448 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
444 }; | 449 }; |
445 | 450 |
446 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 451 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |