| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual WebView* CreateWebView(WebView* webview, bool user_gesture); | 68 virtual WebView* CreateWebView(WebView* webview, bool user_gesture); |
| 69 virtual WebWidget* CreatePopupWidget(WebView* webview); | 69 virtual WebWidget* CreatePopupWidget(WebView* webview); |
| 70 virtual WebPluginDelegate* CreatePluginDelegate( | 70 virtual WebPluginDelegate* CreatePluginDelegate( |
| 71 WebView* webview, | 71 WebView* webview, |
| 72 const GURL& url, | 72 const GURL& url, |
| 73 const std::string& mime_type, | 73 const std::string& mime_type, |
| 74 const std::string& clsid, | 74 const std::string& clsid, |
| 75 std::string* actual_mime_type); | 75 std::string* actual_mime_type); |
| 76 virtual void OpenURL(WebView* webview, | 76 virtual void OpenURL(WebView* webview, |
| 77 const GURL& url, | 77 const GURL& url, |
| 78 const GURL& referrer, |
| 78 WindowOpenDisposition disposition); | 79 WindowOpenDisposition disposition); |
| 79 virtual void RunJavaScriptAlert(WebView* webview, | 80 virtual void RunJavaScriptAlert(WebView* webview, |
| 80 const std::wstring& message); | 81 const std::wstring& message); |
| 81 virtual bool RunJavaScriptConfirm(WebView* webview, | 82 virtual bool RunJavaScriptConfirm(WebView* webview, |
| 82 const std::wstring& message); | 83 const std::wstring& message); |
| 83 virtual bool RunJavaScriptPrompt(WebView* webview, | 84 virtual bool RunJavaScriptPrompt(WebView* webview, |
| 84 const std::wstring& message, | 85 const std::wstring& message, |
| 85 const std::wstring& default_value, | 86 const std::wstring& default_value, |
| 86 std::wstring* result); | 87 std::wstring* result); |
| 87 virtual void AddMessageToConsole(WebView* webview, | 88 virtual void AddMessageToConsole(WebView* webview, |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 scoped_refptr<TestDragDelegate> drag_delegate_; | 286 scoped_refptr<TestDragDelegate> drag_delegate_; |
| 286 scoped_refptr<TestDropDelegate> drop_delegate_; | 287 scoped_refptr<TestDropDelegate> drop_delegate_; |
| 287 #endif | 288 #endif |
| 288 | 289 |
| 289 CapturedContextMenuEvents captured_context_menu_events_; | 290 CapturedContextMenuEvents captured_context_menu_events_; |
| 290 | 291 |
| 291 DISALLOW_EVIL_CONSTRUCTORS(TestWebViewDelegate); | 292 DISALLOW_EVIL_CONSTRUCTORS(TestWebViewDelegate); |
| 292 }; | 293 }; |
| 293 | 294 |
| 294 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 295 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |