| OLD | NEW |
| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool user_gesture, | 82 bool user_gesture, |
| 83 const GURL& creator_url); | 83 const GURL& creator_url); |
| 84 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable); | 84 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable); |
| 85 virtual WebPluginDelegate* CreatePluginDelegate( | 85 virtual WebPluginDelegate* CreatePluginDelegate( |
| 86 WebView* webview, | 86 WebView* webview, |
| 87 const GURL& url, | 87 const GURL& url, |
| 88 const std::string& mime_type, | 88 const std::string& mime_type, |
| 89 const std::string& clsid, | 89 const std::string& clsid, |
| 90 std::string* actual_mime_type); | 90 std::string* actual_mime_type); |
| 91 #if defined(OS_LINUX) | 91 #if defined(OS_LINUX) |
| 92 virtual gfx::PluginWindowHandle CreatePluginContainer(); |
| 92 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); | 93 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle); |
| 93 #endif | 94 #endif |
| 94 virtual WebKit::WebMediaPlayer* CreateWebMediaPlayer( | 95 virtual WebKit::WebMediaPlayer* CreateWebMediaPlayer( |
| 95 WebKit::WebMediaPlayerClient* client); | 96 WebKit::WebMediaPlayerClient* client); |
| 96 virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client); | 97 virtual WebKit::WebWorker* CreateWebWorker(WebKit::WebWorkerClient* client); |
| 97 virtual void OpenURL(WebView* webview, | 98 virtual void OpenURL(WebView* webview, |
| 98 const GURL& url, | 99 const GURL& url, |
| 99 const GURL& referrer, | 100 const GURL& referrer, |
| 100 WindowOpenDisposition disposition); | 101 WindowOpenDisposition disposition); |
| 101 virtual void RunJavaScriptAlert(WebFrame* webframe, | 102 virtual void RunJavaScriptAlert(WebFrame* webframe, |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // cursor. | 367 // cursor. |
| 367 GdkCursorType cursor_type_; | 368 GdkCursorType cursor_type_; |
| 368 #endif | 369 #endif |
| 369 | 370 |
| 370 CapturedContextMenuEvents captured_context_menu_events_; | 371 CapturedContextMenuEvents captured_context_menu_events_; |
| 371 | 372 |
| 372 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 373 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 373 }; | 374 }; |
| 374 | 375 |
| 375 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 376 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |