Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: webkit/tools/test_shell/test_webview_delegate.cc

Issue 10392136: Add WebFrame pointer to WebViewClient::startDragging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_webview_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698