OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 virtual void runModal(); | 157 virtual void runModal(); |
158 virtual WebKit::WebRect windowRect(); | 158 virtual WebKit::WebRect windowRect(); |
159 virtual void setWindowRect(const WebKit::WebRect& rect); | 159 virtual void setWindowRect(const WebKit::WebRect& rect); |
160 virtual WebKit::WebRect rootWindowRect(); | 160 virtual WebKit::WebRect rootWindowRect(); |
161 virtual WebKit::WebRect windowResizerRect(); | 161 virtual WebKit::WebRect windowResizerRect(); |
162 virtual WebKit::WebScreenInfo screenInfo(); | 162 virtual WebKit::WebScreenInfo screenInfo(); |
163 | 163 |
164 // WebKit::WebFrameClient | 164 // WebKit::WebFrameClient |
165 virtual WebKit::WebPlugin* createPlugin( | 165 virtual WebKit::WebPlugin* createPlugin( |
166 WebKit::WebFrame*, const WebKit::WebPluginParams&); | 166 WebKit::WebFrame*, const WebKit::WebPluginParams&); |
167 virtual WebKit::WebWorker* createWorker( | |
168 WebKit::WebFrame*, WebKit::WebWorkerClient*); | |
169 virtual WebKit::WebMediaPlayer* createMediaPlayer( | 167 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
170 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); | 168 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); |
171 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 169 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
172 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); | 170 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); |
173 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); | 171 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); |
174 virtual bool allowImage(WebKit::WebFrame* frame, | 172 virtual bool allowImage(WebKit::WebFrame* frame, |
175 bool enabled_per_settings, | 173 bool enabled_per_settings, |
176 const WebKit::WebURL& image_url); | 174 const WebKit::WebURL& image_url); |
177 virtual void loadURLExternally( | 175 virtual void loadURLExternally( |
178 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 176 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 std::string edit_command_name_; | 445 std::string edit_command_name_; |
448 std::string edit_command_value_; | 446 std::string edit_command_value_; |
449 | 447 |
450 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 448 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
451 MockSpellCheck mock_spellcheck_; | 449 MockSpellCheck mock_spellcheck_; |
452 | 450 |
453 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 451 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
454 }; | 452 }; |
455 | 453 |
456 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 454 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |