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

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

Issue 387002: Implement EventSender.mouseWheelTo method.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 5
6 /* 6 /*
7 EventSendingController class: 7 EventSendingController class:
8 Bound to a JavaScript window.eventSender object using 8 Bound to a JavaScript window.eventSender object using
9 CppBoundClass::BindToJavascript(), this allows layout tests that are run in 9 CppBoundClass::BindToJavascript(), this allows layout tests that are run in
10 the test_shell to fire DOM events. 10 the test_shell to fire DOM events.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // Simulate drag&drop system call. 43 // Simulate drag&drop system call.
44 static void DoDragDrop(const WebKit::WebPoint &event_pos, 44 static void DoDragDrop(const WebKit::WebPoint &event_pos,
45 const WebKit::WebDragData& drag_data, 45 const WebKit::WebDragData& drag_data,
46 WebKit::WebDragOperationsMask operations_mask); 46 WebKit::WebDragOperationsMask operations_mask);
47 47
48 // JS callback methods. 48 // JS callback methods.
49 void mouseDown(const CppArgumentList& args, CppVariant* result); 49 void mouseDown(const CppArgumentList& args, CppVariant* result);
50 void mouseUp(const CppArgumentList& args, CppVariant* result); 50 void mouseUp(const CppArgumentList& args, CppVariant* result);
51 void mouseMoveTo(const CppArgumentList& args, CppVariant* result); 51 void mouseMoveTo(const CppArgumentList& args, CppVariant* result);
52 void mouseWheelTo(const CppArgumentList& args, CppVariant* result);
52 void leapForward(const CppArgumentList& args, CppVariant* result); 53 void leapForward(const CppArgumentList& args, CppVariant* result);
53 void keyDown(const CppArgumentList& args, CppVariant* result); 54 void keyDown(const CppArgumentList& args, CppVariant* result);
54 void dispatchMessage(const CppArgumentList& args, CppVariant* result); 55 void dispatchMessage(const CppArgumentList& args, CppVariant* result);
55 void textZoomIn(const CppArgumentList& args, CppVariant* result); 56 void textZoomIn(const CppArgumentList& args, CppVariant* result);
56 void textZoomOut(const CppArgumentList& args, CppVariant* result); 57 void textZoomOut(const CppArgumentList& args, CppVariant* result);
57 void zoomPageIn(const CppArgumentList& args, CppVariant* result); 58 void zoomPageIn(const CppArgumentList& args, CppVariant* result);
58 void zoomPageOut(const CppArgumentList& args, CppVariant* result); 59 void zoomPageOut(const CppArgumentList& args, CppVariant* result);
59 void scheduleAsynchronousClick(const CppArgumentList& args, 60 void scheduleAsynchronousClick(const CppArgumentList& args,
60 CppVariant* result); 61 CppVariant* result);
61 void beginDragWithFiles(const CppArgumentList& args, CppVariant* result); 62 void beginDragWithFiles(const CppArgumentList& args, CppVariant* result);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Currently pressed mouse button (Left/Right/Middle or None) 119 // Currently pressed mouse button (Left/Right/Middle or None)
119 static WebKit::WebMouseEvent::Button pressed_button_; 120 static WebKit::WebMouseEvent::Button pressed_button_;
120 121
121 // The last button number passed to mouseDown and mouseUp. 122 // The last button number passed to mouseDown and mouseUp.
122 // Used to determine whether the click count continues to 123 // Used to determine whether the click count continues to
123 // increment or not. 124 // increment or not.
124 static WebKit::WebMouseEvent::Button last_button_type_; 125 static WebKit::WebMouseEvent::Button last_button_type_;
125 }; 126 };
126 127
127 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ 128 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webkit/tools/layout_tests/test_expectations.txt ('k') | webkit/tools/test_shell/event_sending_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698