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_ |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 virtual WebKit::WebRect windowRect(); | 159 virtual WebKit::WebRect windowRect(); |
160 virtual void setWindowRect(const WebKit::WebRect& rect); | 160 virtual void setWindowRect(const WebKit::WebRect& rect); |
161 virtual WebKit::WebRect rootWindowRect(); | 161 virtual WebKit::WebRect rootWindowRect(); |
162 virtual WebKit::WebRect windowResizerRect(); | 162 virtual WebKit::WebRect windowResizerRect(); |
163 virtual WebKit::WebScreenInfo screenInfo(); | 163 virtual WebKit::WebScreenInfo screenInfo(); |
164 | 164 |
165 // WebKit::WebFrameClient | 165 // WebKit::WebFrameClient |
166 virtual WebKit::WebPlugin* createPlugin( | 166 virtual WebKit::WebPlugin* createPlugin( |
167 WebKit::WebFrame*, const WebKit::WebPluginParams&); | 167 WebKit::WebFrame*, const WebKit::WebPluginParams&); |
168 virtual WebKit::WebMediaPlayer* createMediaPlayer( | 168 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
| 169 WebKit::WebFrame*, const WebKit::WebURL&, WebKit::WebMediaPlayerClient*); |
| 170 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
169 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); | 171 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); |
170 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 172 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
171 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); | 173 WebKit::WebFrame*, WebKit::WebApplicationCacheHostClient*); |
172 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); | 174 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); |
173 virtual bool allowImage(WebKit::WebFrame* frame, | 175 virtual bool allowImage(WebKit::WebFrame* frame, |
174 bool enabled_per_settings, | 176 bool enabled_per_settings, |
175 const WebKit::WebURL& image_url); | 177 const WebKit::WebURL& image_url); |
176 virtual void loadURLExternally( | 178 virtual void loadURLExternally( |
177 WebKit::WebFrame*, const WebKit::WebURLRequest&, | 179 WebKit::WebFrame*, const WebKit::WebURLRequest&, |
178 WebKit::WebNavigationPolicy); | 180 WebKit::WebNavigationPolicy); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 std::string edit_command_name_; | 441 std::string edit_command_name_; |
440 std::string edit_command_value_; | 442 std::string edit_command_value_; |
441 | 443 |
442 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 444 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
443 MockSpellCheck mock_spellcheck_; | 445 MockSpellCheck mock_spellcheck_; |
444 | 446 |
445 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 447 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
446 }; | 448 }; |
447 | 449 |
448 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 450 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |