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/WebKit/chromium/public/WebContextMenuData.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste
m.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" |
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
| 28 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
28 #include "webkit/glue/webcursor.h" | 29 #include "webkit/glue/webcursor.h" |
29 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 30 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
30 #include "webkit/tools/test_shell/mock_spellcheck.h" | 31 #include "webkit/tools/test_shell/mock_spellcheck.h" |
31 #include "webkit/tools/test_shell/test_navigation_controller.h" | 32 #include "webkit/tools/test_shell/test_navigation_controller.h" |
32 | 33 |
33 #if defined(OS_MACOSX) | 34 #if defined(OS_MACOSX) |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h" |
35 #endif | 36 #endif |
36 | 37 |
37 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual WebKit::WebView* createView( | 83 virtual WebKit::WebView* createView( |
83 WebKit::WebFrame* creator, | 84 WebKit::WebFrame* creator, |
84 const WebKit::WebURLRequest& request, | 85 const WebKit::WebURLRequest& request, |
85 const WebKit::WebWindowFeatures& features, | 86 const WebKit::WebWindowFeatures& features, |
86 const WebKit::WebString& frame_name); | 87 const WebKit::WebString& frame_name); |
87 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 88 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
88 virtual WebKit::WebWidget* createPopupMenu( | 89 virtual WebKit::WebWidget* createPopupMenu( |
89 const WebKit::WebPopupMenuInfo& info); | 90 const WebKit::WebPopupMenuInfo& info); |
90 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 91 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
91 unsigned quota); | 92 unsigned quota); |
| 93 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( |
| 94 WebKit::WebGraphicsContext3D::Attributes attributes, |
| 95 bool direct); |
92 virtual void didAddMessageToConsole( | 96 virtual void didAddMessageToConsole( |
93 const WebKit::WebConsoleMessage& message, | 97 const WebKit::WebConsoleMessage& message, |
94 const WebKit::WebString& source_name, unsigned source_line); | 98 const WebKit::WebString& source_name, unsigned source_line); |
95 virtual void didStartLoading(); | 99 virtual void didStartLoading(); |
96 virtual void didStopLoading(); | 100 virtual void didStopLoading(); |
97 virtual bool shouldBeginEditing(const WebKit::WebRange& range); | 101 virtual bool shouldBeginEditing(const WebKit::WebRange& range); |
98 virtual bool shouldEndEditing(const WebKit::WebRange& range); | 102 virtual bool shouldEndEditing(const WebKit::WebRange& range); |
99 virtual bool shouldInsertNode( | 103 virtual bool shouldInsertNode( |
100 const WebKit::WebNode& node, const WebKit::WebRange& range, | 104 const WebKit::WebNode& node, const WebKit::WebRange& range, |
101 WebKit::WebEditingAction action); | 105 WebKit::WebEditingAction action); |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 std::string edit_command_name_; | 449 std::string edit_command_name_; |
446 std::string edit_command_value_; | 450 std::string edit_command_value_; |
447 | 451 |
448 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 452 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
449 MockSpellCheck mock_spellcheck_; | 453 MockSpellCheck mock_spellcheck_; |
450 | 454 |
451 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 455 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
452 }; | 456 }; |
453 | 457 |
454 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 458 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |