OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file contains the implementation of TestWebViewDelegate, which serves | 5 // This file contains the implementation of TestWebViewDelegate, which serves |
6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to | 6 // as the WebViewDelegate for the TestShellWebHost. The host is expected to |
7 // have initialized a MessageLoop before these methods are called. | 7 // have initialized a MessageLoop before these methods are called. |
8 | 8 |
9 #include "webkit/tools/test_shell/test_webview_delegate.h" | 9 #include "webkit/tools/test_shell/test_webview_delegate.h" |
10 | 10 |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 return true; // Allow window closure. | 496 return true; // Allow window closure. |
497 } | 497 } |
498 | 498 |
499 | 499 |
500 | 500 |
501 | 501 |
502 void TestWebViewDelegate::setStatusText(const WebString& text) { | 502 void TestWebViewDelegate::setStatusText(const WebString& text) { |
503 } | 503 } |
504 | 504 |
505 void TestWebViewDelegate::startDragging( | 505 void TestWebViewDelegate::startDragging( |
| 506 WebFrame* frame, |
506 const WebDragData& data, | 507 const WebDragData& data, |
507 WebDragOperationsMask mask, | 508 WebDragOperationsMask mask, |
508 const WebImage& image, | 509 const WebImage& image, |
509 const WebPoint& image_offset) { | 510 const WebPoint& image_offset) { |
510 shell_->webView()->dragSourceSystemDragEnded(); | 511 shell_->webView()->dragSourceSystemDragEnded(); |
511 } | 512 } |
512 | 513 |
513 void TestWebViewDelegate::navigateBackForwardSoon(int offset) { | 514 void TestWebViewDelegate::navigateBackForwardSoon(int offset) { |
514 shell_->navigation_controller()->GoToOffset(offset); | 515 shell_->navigation_controller()->GoToOffset(offset); |
515 } | 516 } |
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1151 } | 1152 } |
1152 | 1153 |
1153 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { | 1154 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { |
1154 fake_rect_ = rect; | 1155 fake_rect_ = rect; |
1155 using_fake_rect_ = true; | 1156 using_fake_rect_ = true; |
1156 } | 1157 } |
1157 | 1158 |
1158 WebRect TestWebViewDelegate::fake_window_rect() { | 1159 WebRect TestWebViewDelegate::fake_window_rect() { |
1159 return fake_rect_; | 1160 return fake_rect_; |
1160 } | 1161 } |
OLD | NEW |