Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.h

Issue 549213: Add UI to TestShell to enable/disable images, plugins, and scripts.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual WebKit::WebRect windowResizerRect(); 145 virtual WebKit::WebRect windowResizerRect();
146 virtual WebKit::WebScreenInfo screenInfo(); 146 virtual WebKit::WebScreenInfo screenInfo();
147 147
148 // WebKit::WebFrameClient 148 // WebKit::WebFrameClient
149 virtual WebKit::WebPlugin* createPlugin( 149 virtual WebKit::WebPlugin* createPlugin(
150 WebKit::WebFrame*, const WebKit::WebPluginParams&); 150 WebKit::WebFrame*, const WebKit::WebPluginParams&);
151 virtual WebKit::WebWorker* createWorker( 151 virtual WebKit::WebWorker* createWorker(
152 WebKit::WebFrame*, WebKit::WebWorkerClient*); 152 WebKit::WebFrame*, WebKit::WebWorkerClient*);
153 virtual WebKit::WebMediaPlayer* createMediaPlayer( 153 virtual WebKit::WebMediaPlayer* createMediaPlayer(
154 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*); 154 WebKit::WebFrame*, WebKit::WebMediaPlayerClient*);
155 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings);
156 virtual bool allowImages(WebKit::WebFrame* frame, bool enabled_per_settings);
155 virtual void loadURLExternally( 157 virtual void loadURLExternally(
156 WebKit::WebFrame*, const WebKit::WebURLRequest&, 158 WebKit::WebFrame*, const WebKit::WebURLRequest&,
157 WebKit::WebNavigationPolicy); 159 WebKit::WebNavigationPolicy);
158 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( 160 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(
159 WebKit::WebFrame*, const WebKit::WebURLRequest&, 161 WebKit::WebFrame*, const WebKit::WebURLRequest&,
160 WebKit::WebNavigationType, const WebKit::WebNode&, 162 WebKit::WebNavigationType, const WebKit::WebNode&,
161 WebKit::WebNavigationPolicy default_policy, bool isRedirect); 163 WebKit::WebNavigationPolicy default_policy, bool isRedirect);
162 virtual bool canHandleRequest( 164 virtual bool canHandleRequest(
163 WebKit::WebFrame*, const WebKit::WebURLRequest&); 165 WebKit::WebFrame*, const WebKit::WebURLRequest&);
164 virtual WebKit::WebURLError cannotHandleRequestError( 166 virtual WebKit::WebURLError cannotHandleRequestError(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 const WebKit::WebURLResponse& redirectResponse); 198 const WebKit::WebURLResponse& redirectResponse);
197 virtual void didReceiveResponse( 199 virtual void didReceiveResponse(
198 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLResponse&); 200 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLResponse&);
199 virtual void didFinishResourceLoad( 201 virtual void didFinishResourceLoad(
200 WebKit::WebFrame*, unsigned identifier); 202 WebKit::WebFrame*, unsigned identifier);
201 virtual void didFailResourceLoad( 203 virtual void didFailResourceLoad(
202 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); 204 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&);
203 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); 205 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame);
204 virtual void didRunInsecureContent( 206 virtual void didRunInsecureContent(
205 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); 207 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin);
208 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings);
206 209
207 // webkit_glue::WebPluginPageDelegate 210 // webkit_glue::WebPluginPageDelegate
208 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( 211 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate(
209 const GURL& url, 212 const GURL& url,
210 const std::string& mime_type, 213 const std::string& mime_type,
211 std::string* actual_mime_type); 214 std::string* actual_mime_type);
212 virtual void CreatedPluginWindow( 215 virtual void CreatedPluginWindow(
213 gfx::PluginWindowHandle handle); 216 gfx::PluginWindowHandle handle);
214 virtual void WillDestroyPluginWindow( 217 virtual void WillDestroyPluginWindow(
215 gfx::PluginWindowHandle handle); 218 gfx::PluginWindowHandle handle);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 std::string edit_command_name_; 401 std::string edit_command_name_;
399 std::string edit_command_value_; 402 std::string edit_command_value_;
400 403
401 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). 404 // The mock spellchecker used in TestWebViewDelegate::spellCheck().
402 MockSpellCheck mock_spellcheck_; 405 MockSpellCheck mock_spellcheck_;
403 406
404 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); 407 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate);
405 }; 408 };
406 409
407 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 410 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_win.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698