| 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 17 matching lines...) Expand all Loading... |
| 28 #include "webkit/api/public/WebPopupMenuInfo.h" | 28 #include "webkit/api/public/WebPopupMenuInfo.h" |
| 29 #endif | 29 #endif |
| 30 #include "webkit/glue/webcursor.h" | 30 #include "webkit/glue/webcursor.h" |
| 31 #include "webkit/glue/webview_delegate.h" | 31 #include "webkit/glue/webview_delegate.h" |
| 32 #if defined(OS_WIN) | 32 #if defined(OS_WIN) |
| 33 #include "webkit/tools/test_shell/drag_delegate.h" | 33 #include "webkit/tools/test_shell/drag_delegate.h" |
| 34 #include "webkit/tools/test_shell/drop_delegate.h" | 34 #include "webkit/tools/test_shell/drop_delegate.h" |
| 35 #endif | 35 #endif |
| 36 #include "webkit/tools/test_shell/test_navigation_controller.h" | 36 #include "webkit/tools/test_shell/test_navigation_controller.h" |
| 37 | 37 |
| 38 struct ContextMenuMediaParams; |
| 38 struct WebPreferences; | 39 struct WebPreferences; |
| 39 class GURL; | 40 class GURL; |
| 40 class TestShell; | 41 class TestShell; |
| 41 class WebWidgetHost; | 42 class WebWidgetHost; |
| 42 | 43 |
| 43 class TestWebViewDelegate : public base::RefCounted<TestWebViewDelegate>, | 44 class TestWebViewDelegate : public base::RefCounted<TestWebViewDelegate>, |
| 44 public WebViewDelegate { | 45 public WebViewDelegate { |
| 45 public: | 46 public: |
| 46 struct CapturedContextMenuEvent { | 47 struct CapturedContextMenuEvent { |
| 47 CapturedContextMenuEvent(ContextNode in_node, | 48 CapturedContextMenuEvent(ContextNode in_node, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 virtual void StartDragging(WebView* webview, | 130 virtual void StartDragging(WebView* webview, |
| 130 const WebKit::WebDragData& drag_data); | 131 const WebKit::WebDragData& drag_data); |
| 131 virtual void ShowContextMenu(WebView* webview, | 132 virtual void ShowContextMenu(WebView* webview, |
| 132 ContextNode node, | 133 ContextNode node, |
| 133 int x, | 134 int x, |
| 134 int y, | 135 int y, |
| 135 const GURL& link_url, | 136 const GURL& link_url, |
| 136 const GURL& image_url, | 137 const GURL& image_url, |
| 137 const GURL& page_url, | 138 const GURL& page_url, |
| 138 const GURL& frame_url, | 139 const GURL& frame_url, |
| 140 const ContextMenuMediaParams& media_params, |
| 139 const std::wstring& selection_text, | 141 const std::wstring& selection_text, |
| 140 const std::wstring& misspelled_word, | 142 const std::wstring& misspelled_word, |
| 141 int edit_flags, | 143 int edit_flags, |
| 142 const std::string& security_info, | 144 const std::string& security_info, |
| 143 const std::string& frame_charset); | 145 const std::string& frame_charset); |
| 144 virtual void DidCreateDataSource(WebFrame* frame, | 146 virtual void DidCreateDataSource(WebFrame* frame, |
| 145 WebKit::WebDataSource* ds); | 147 WebKit::WebDataSource* ds); |
| 146 virtual void DidStartProvisionalLoadForFrame( | 148 virtual void DidStartProvisionalLoadForFrame( |
| 147 WebView* webview, | 149 WebView* webview, |
| 148 WebFrame* frame, | 150 WebFrame* frame, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 368 |
| 367 #if defined(OS_MACOSX) | 369 #if defined(OS_MACOSX) |
| 368 scoped_ptr<WebKit::WebPopupMenuInfo> popup_menu_info_; | 370 scoped_ptr<WebKit::WebPopupMenuInfo> popup_menu_info_; |
| 369 WebKit::WebRect popup_bounds_; | 371 WebKit::WebRect popup_bounds_; |
| 370 #endif | 372 #endif |
| 371 | 373 |
| 372 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 374 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 373 }; | 375 }; |
| 374 | 376 |
| 375 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 377 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |