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

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

Issue 266076: Fix EventSendingController so that we do event saving and replay like what We... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
OLDNEW
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 // 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 "config.h" 9 #include "config.h"
10 10
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 // to be able to convert from WebDragData to an IDataObject. 520 // to be able to convert from WebDragData to an IDataObject.
521 //if (!drag_delegate_) 521 //if (!drag_delegate_)
522 // drag_delegate_ = new TestDragDelegate(shell_->webViewWnd(), 522 // drag_delegate_ = new TestDragDelegate(shell_->webViewWnd(),
523 // shell_->webView()); 523 // shell_->webView());
524 //const DWORD ok_effect = DROPEFFECT_COPY | DROPEFFECT_LINK | DROPEFFECT_MOV E; 524 //const DWORD ok_effect = DROPEFFECT_COPY | DROPEFFECT_LINK | DROPEFFECT_MOV E;
525 //DWORD effect; 525 //DWORD effect;
526 //HRESULT res = DoDragDrop(drop_data.data_object, drag_delegate_.get(), 526 //HRESULT res = DoDragDrop(drop_data.data_object, drag_delegate_.get(),
527 // ok_effect, &effect); 527 // ok_effect, &effect);
528 //DCHECK(DRAGDROP_S_DROP == res || DRAGDROP_S_CANCEL == res); 528 //DCHECK(DRAGDROP_S_DROP == res || DRAGDROP_S_CANCEL == res);
529 } 529 }
530 shell_->webView()->dragSourceSystemDragEnded();
531 } 530 }
532 531
533 void TestWebViewDelegate::navigateBackForwardSoon(int offset) { 532 void TestWebViewDelegate::navigateBackForwardSoon(int offset) {
534 shell_->navigation_controller()->GoToOffset(offset); 533 shell_->navigation_controller()->GoToOffset(offset);
535 } 534 }
536 535
537 int TestWebViewDelegate::historyBackListCount() { 536 int TestWebViewDelegate::historyBackListCount() {
538 int current_index = 537 int current_index =
539 shell_->navigation_controller()->GetLastCommittedEntryIndex(); 538 shell_->navigation_controller()->GetLastCommittedEntryIndex();
540 return current_index; 539 return current_index;
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 } 1101 }
1103 1102
1104 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) { 1103 void TestWebViewDelegate::set_fake_window_rect(const WebRect& rect) {
1105 fake_rect_ = rect; 1104 fake_rect_ = rect;
1106 using_fake_rect_ = true; 1105 using_fake_rect_ = true;
1107 } 1106 }
1108 1107
1109 WebRect TestWebViewDelegate::fake_window_rect() { 1108 WebRect TestWebViewDelegate::fake_window_rect() {
1110 return fake_rect_; 1109 return fake_rect_;
1111 } 1110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698