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

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

Issue 2262002: Add ppapi plugins to about:plugins (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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) 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 WebKit::WebFrame*, unsigned identifier); 215 WebKit::WebFrame*, unsigned identifier);
216 virtual void didFailResourceLoad( 216 virtual void didFailResourceLoad(
217 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&); 217 WebKit::WebFrame*, unsigned identifier, const WebKit::WebURLError&);
218 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame); 218 virtual void didDisplayInsecureContent(WebKit::WebFrame* frame);
219 virtual void didRunInsecureContent( 219 virtual void didRunInsecureContent(
220 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin); 220 WebKit::WebFrame* frame, const WebKit::WebSecurityOrigin& origin);
221 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings); 221 virtual bool allowScript(WebKit::WebFrame* frame, bool enabled_per_settings);
222 222
223 // webkit_glue::WebPluginPageDelegate 223 // webkit_glue::WebPluginPageDelegate
224 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( 224 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate(
225 const GURL& url, 225 const FilePath& url,
226 const std::string& mime_type, 226 const std::string& mime_type);
227 std::string* actual_mime_type);
228 virtual void CreatedPluginWindow( 227 virtual void CreatedPluginWindow(
229 gfx::PluginWindowHandle handle); 228 gfx::PluginWindowHandle handle);
230 virtual void WillDestroyPluginWindow( 229 virtual void WillDestroyPluginWindow(
231 gfx::PluginWindowHandle handle); 230 gfx::PluginWindowHandle handle);
232 virtual void DidMovePlugin( 231 virtual void DidMovePlugin(
233 const webkit_glue::WebPluginGeometry& move); 232 const webkit_glue::WebPluginGeometry& move);
234 virtual void DidStartLoadingForPlugin() {} 233 virtual void DidStartLoadingForPlugin() {}
235 virtual void DidStopLoadingForPlugin() {} 234 virtual void DidStopLoadingForPlugin() {}
236 virtual void ShowModalHTMLDialogForPlugin( 235 virtual void ShowModalHTMLDialogForPlugin(
237 const GURL& url, 236 const GURL& url,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // non-popup windows (see TabContents::RequestMove()). These functions allow 339 // non-popup windows (see TabContents::RequestMove()). These functions allow
341 // the test shell to mimic its behavior. If setWindowRect() is called for 340 // the test shell to mimic its behavior. If setWindowRect() is called for
342 // the main window, the passed in WebRect is saved as fake_rect_ and we return 341 // the main window, the passed in WebRect is saved as fake_rect_ and we return
343 // it instead of the real window dimensions whenever rootWindowRect() is 342 // it instead of the real window dimensions whenever rootWindowRect() is
344 // called. 343 // called.
345 WebKit::WebRect fake_window_rect(); 344 WebKit::WebRect fake_window_rect();
346 void set_fake_window_rect(const WebKit::WebRect&); 345 void set_fake_window_rect(const WebKit::WebRect&);
347 346
348 WebWidgetHost* GetWidgetHost(); 347 WebWidgetHost* GetWidgetHost();
349 348
350 void UpdateForCommittedLoad(WebKit::WebFrame* webframe, bool is_new_navigation ); 349 void UpdateForCommittedLoad(WebKit::WebFrame* frame, bool is_new_navigation);
351 void UpdateURL(WebKit::WebFrame* frame); 350 void UpdateURL(WebKit::WebFrame* frame);
352 void UpdateSessionHistory(WebKit::WebFrame* frame); 351 void UpdateSessionHistory(WebKit::WebFrame* frame);
353 void UpdateSelectionClipboard(bool is_empty_selection); 352 void UpdateSelectionClipboard(bool is_empty_selection);
354 353
355 // Get a string suitable for dumping a frame to the console. 354 // Get a string suitable for dumping a frame to the console.
356 std::wstring GetFrameDescription(WebKit::WebFrame* webframe); 355 std::wstring GetFrameDescription(WebKit::WebFrame* webframe);
357 356
358 // Returns a TestGeolocationService owned by this delegate. 357 // Returns a TestGeolocationService owned by this delegate.
359 TestGeolocationService* GetTestGeolocationService(); 358 TestGeolocationService* GetTestGeolocationService();
360 359
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 432
434 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). 433 // The mock spellchecker used in TestWebViewDelegate::spellCheck().
435 MockSpellCheck mock_spellcheck_; 434 MockSpellCheck mock_spellcheck_;
436 435
437 scoped_ptr<TestGeolocationService> test_geolocation_service_; 436 scoped_ptr<TestGeolocationService> test_geolocation_service_;
438 437
439 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); 438 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate);
440 }; 439 };
441 440
442 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ 441 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698