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

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

Issue 1519018: Update test shell for new dragImage api.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: alphabet Created 10 years, 8 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 definition for EventSendingController. 5 // This file contains the definition for EventSendingController.
6 // 6 //
7 // Some notes about drag and drop handling: 7 // Some notes about drag and drop handling:
8 // Windows drag and drop goes through a system call to DoDragDrop. At that 8 // Windows drag and drop goes through a system call to DoDragDrop. At that
9 // point, program control is given to Windows which then periodically makes 9 // point, program control is given to Windows which then periodically makes
10 // callbacks into the webview. This won't work for layout tests, so instead, 10 // callbacks into the webview. This won't work for layout tests, so instead,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 last_button_type_ = WebMouseEvent::ButtonNone; 329 last_button_type_ = WebMouseEvent::ButtonNone;
330 time_offset_ms = 0; 330 time_offset_ms = 0;
331 touch_modifiers = 0; 331 touch_modifiers = 0;
332 touch_points.clear(); 332 touch_points.clear();
333 } 333 }
334 334
335 WebView* EventSendingController::webview() { 335 WebView* EventSendingController::webview() {
336 return shell_->webView(); 336 return shell_->webView();
337 } 337 }
338 338
339 void EventSendingController::DoDragDrop(const WebKit::WebPoint &event_pos, 339 void EventSendingController::DoDragDrop(const WebDragData& drag_data,
340 const WebDragData& drag_data,
341 WebDragOperationsMask mask) { 340 WebDragOperationsMask mask) {
342 WebMouseEvent event; 341 WebMouseEvent event;
343 InitMouseEvent(WebInputEvent::MouseDown, pressed_button_, last_mouse_pos_, &ev ent); 342 InitMouseEvent(WebInputEvent::MouseDown, pressed_button_, last_mouse_pos_, &ev ent);
344 WebPoint client_point(event.x, event.y); 343 WebPoint client_point(event.x, event.y);
345 WebPoint screen_point(event.globalX, event.globalY); 344 WebPoint screen_point(event.globalX, event.globalY);
346 current_drag_data = drag_data; 345 current_drag_data = drag_data;
347 current_drag_effects_allowed = mask; 346 current_drag_effects_allowed = mask;
348 current_drag_effect = webview()->dragTargetDragEnter( 347 current_drag_effect = webview()->dragTargetDragEnter(
349 drag_data, 0, client_point, screen_point, current_drag_effects_allowed); 348 drag_data, 0, client_point, screen_point, current_drag_effects_allowed);
350 349
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 981
983 void EventSendingController::fireKeyboardEventsToElement( 982 void EventSendingController::fireKeyboardEventsToElement(
984 const CppArgumentList& args, CppVariant* result) { 983 const CppArgumentList& args, CppVariant* result) {
985 result->SetNull(); 984 result->SetNull();
986 } 985 }
987 986
988 void EventSendingController::clearKillRing( 987 void EventSendingController::clearKillRing(
989 const CppArgumentList& args, CppVariant* result) { 988 const CppArgumentList& args, CppVariant* result) {
990 result->SetNull(); 989 result->SetNull();
991 } 990 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/event_sending_controller.h ('k') | webkit/tools/test_shell/test_webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698