| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 , custom_cursor_(NULL) | 70 , custom_cursor_(NULL) |
| 71 #elif defined(OS_LINUX) | 71 #elif defined(OS_LINUX) |
| 72 , cursor_type_(GDK_X_CURSOR) | 72 , cursor_type_(GDK_X_CURSOR) |
| 73 #endif | 73 #endif |
| 74 { | 74 { |
| 75 } | 75 } |
| 76 virtual ~TestWebViewDelegate(); | 76 virtual ~TestWebViewDelegate(); |
| 77 | 77 |
| 78 // WebViewDelegate | 78 // WebViewDelegate |
| 79 virtual WebView* CreateWebView(WebView* webview, bool user_gesture); | 79 virtual WebView* CreateWebView(WebView* webview, bool user_gesture); |
| 80 virtual WebWidget* CreatePopupWidget(WebView* webview, bool focus_on_show); | 80 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable); |
| 81 virtual WebPluginDelegate* CreatePluginDelegate( | 81 virtual WebPluginDelegate* CreatePluginDelegate( |
| 82 WebView* webview, | 82 WebView* webview, |
| 83 const GURL& url, | 83 const GURL& url, |
| 84 const std::string& mime_type, | 84 const std::string& mime_type, |
| 85 const std::string& clsid, | 85 const std::string& clsid, |
| 86 std::string* actual_mime_type); | 86 std::string* actual_mime_type); |
| 87 virtual void OpenURL(WebView* webview, | 87 virtual void OpenURL(WebView* webview, |
| 88 const GURL& url, | 88 const GURL& url, |
| 89 const GURL& referrer, | 89 const GURL& referrer, |
| 90 WindowOpenDisposition disposition); | 90 WindowOpenDisposition disposition); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 // cursor. | 324 // cursor. |
| 325 GdkCursorType cursor_type_; | 325 GdkCursorType cursor_type_; |
| 326 #endif | 326 #endif |
| 327 | 327 |
| 328 CapturedContextMenuEvents captured_context_menu_events_; | 328 CapturedContextMenuEvents captured_context_menu_events_; |
| 329 | 329 |
| 330 DISALLOW_EVIL_CONSTRUCTORS(TestWebViewDelegate); | 330 DISALLOW_EVIL_CONSTRUCTORS(TestWebViewDelegate); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 333 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |