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 // 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_ |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 virtual WebKit::WebRect windowResizerRect(); | 150 virtual WebKit::WebRect windowResizerRect(); |
151 virtual WebKit::WebScreenInfo screenInfo(); | 151 virtual WebKit::WebScreenInfo screenInfo(); |
152 | 152 |
153 // WebKit::WebFrameClient | 153 // WebKit::WebFrameClient |
154 virtual WebKit::WebPlugin* createPlugin( | 154 virtual WebKit::WebPlugin* createPlugin( |
155 WebKit::WebFrame*, const WebKit::WebPluginParams&); | 155 WebKit::WebFrame*, const WebKit::WebPluginParams&); |
156 virtual WebKit::WebWorker* createWorker( | 156 virtual WebKit::WebWorker* createWorker( |
157 WebKit::WebFrame*, WebKit::WebWorkerClient*); | 157 WebKit::WebFrame*, WebKit::WebWorkerClient*); |
158 virtual WebKit::WebMediaPlayer* createMediaPlayer( | 158 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
159 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); | 159 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); |
| 160 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
| 161 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); |
160 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); | 162 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); |
161 virtual bool allowImages(WebKit::WebFrame* frame, bool enabled_per_settings); | 163 virtual bool allowImages(WebKit::WebFrame* frame, bool enabled_per_settings); |
162 virtual void loadURLExternally( | 164 virtual void loadURLExternally( |
163 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 165 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
164 WebKit::WebNavigationPolicy); | 166 WebKit::WebNavigationPolicy); |
165 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 167 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
166 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 168 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
167 WebKit::WebNavigationType, const WebKit::WebNode&, | 169 WebKit::WebNavigationType, const WebKit::WebNode&, |
168 WebKit::WebNavigationPolicy default_policy, bool isRedirect); | 170 WebKit::WebNavigationPolicy default_policy, bool isRedirect); |
169 virtual bool canHandleRequest( | 171 virtual bool canHandleRequest( |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 std::string edit_command_name_; | 421 std::string edit_command_name_; |
420 std::string edit_command_value_; | 422 std::string edit_command_value_; |
421 | 423 |
422 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 424 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
423 MockSpellCheck mock_spellcheck_; | 425 MockSpellCheck mock_spellcheck_; |
424 | 426 |
425 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 427 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
426 }; | 428 }; |
427 | 429 |
428 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 430 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |