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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 std::wstring* result); | 95 std::wstring* result); |
96 | 96 |
97 virtual void SetStatusbarText(WebView* webview, | 97 virtual void SetStatusbarText(WebView* webview, |
98 const std::wstring& message); | 98 const std::wstring& message); |
99 | 99 |
100 virtual void AddMessageToConsole(WebView* webview, | 100 virtual void AddMessageToConsole(WebView* webview, |
101 const std::wstring& message, | 101 const std::wstring& message, |
102 unsigned int line_no, | 102 unsigned int line_no, |
103 const std::wstring& source_id); | 103 const std::wstring& source_id); |
104 virtual void StartDragging(WebView* webview, | 104 virtual void StartDragging(WebView* webview, |
105 const WebKit::WebDragData& drag_data); | 105 const WebKit::WebPoint &mouseCoords, |
| 106 const WebKit::WebDragData& drag_data, |
| 107 WebKit::WebDragOperationsMask operations_mask); |
106 virtual void ShowContextMenu(WebView* webview, | 108 virtual void ShowContextMenu(WebView* webview, |
107 ContextNodeType node_type, | 109 ContextNodeType node_type, |
108 int x, | 110 int x, |
109 int y, | 111 int y, |
110 const GURL& link_url, | 112 const GURL& link_url, |
111 const GURL& image_url, | 113 const GURL& image_url, |
112 const GURL& page_url, | 114 const GURL& page_url, |
113 const GURL& frame_url, | 115 const GURL& frame_url, |
114 const ContextMenuMediaParams& media_params, | 116 const ContextMenuMediaParams& media_params, |
115 const std::wstring& selection_text, | 117 const std::wstring& selection_text, |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // true if we want to enable selection of trailing whitespaces | 384 // true if we want to enable selection of trailing whitespaces |
383 bool select_trailing_whitespace_enabled_; | 385 bool select_trailing_whitespace_enabled_; |
384 | 386 |
385 // true if we should block any redirects | 387 // true if we should block any redirects |
386 bool block_redirects_; | 388 bool block_redirects_; |
387 | 389 |
388 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 390 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
389 }; | 391 }; |
390 | 392 |
391 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 393 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
OLD | NEW |