OLD | NEW |
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 23 matching lines...) Expand all Loading... |
34 class EventSendingController : public CppBoundClass { | 34 class EventSendingController : public CppBoundClass { |
35 public: | 35 public: |
36 // Builds the property and method lists needed to bind this class to a JS | 36 // Builds the property and method lists needed to bind this class to a JS |
37 // object. | 37 // object. |
38 EventSendingController(TestShell* shell); | 38 EventSendingController(TestShell* shell); |
39 | 39 |
40 // Resets some static variable state. | 40 // Resets some static variable state. |
41 void Reset(); | 41 void Reset(); |
42 | 42 |
43 // Simulate drag&drop system call. | 43 // Simulate drag&drop system call. |
44 void DoDragDrop(const WebKit::WebPoint &event_pos, | 44 void DoDragDrop(const WebKit::WebDragData& drag_data, |
45 const WebKit::WebDragData& drag_data, | |
46 WebKit::WebDragOperationsMask operations_mask); | 45 WebKit::WebDragOperationsMask operations_mask); |
47 | 46 |
48 // JS callback methods. | 47 // JS callback methods. |
49 void mouseDown(const CppArgumentList& args, CppVariant* result); | 48 void mouseDown(const CppArgumentList& args, CppVariant* result); |
50 void mouseUp(const CppArgumentList& args, CppVariant* result); | 49 void mouseUp(const CppArgumentList& args, CppVariant* result); |
51 void mouseMoveTo(const CppArgumentList& args, CppVariant* result); | 50 void mouseMoveTo(const CppArgumentList& args, CppVariant* result); |
52 void mouseWheelTo(const CppArgumentList& args, CppVariant* result); | 51 void mouseWheelTo(const CppArgumentList& args, CppVariant* result); |
53 void leapForward(const CppArgumentList& args, CppVariant* result); | 52 void leapForward(const CppArgumentList& args, CppVariant* result); |
54 void keyDown(const CppArgumentList& args, CppVariant* result); | 53 void keyDown(const CppArgumentList& args, CppVariant* result); |
55 void dispatchMessage(const CppArgumentList& args, CppVariant* result); | 54 void dispatchMessage(const CppArgumentList& args, CppVariant* result); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // Currently pressed mouse button (Left/Right/Middle or None) | 132 // Currently pressed mouse button (Left/Right/Middle or None) |
134 static WebKit::WebMouseEvent::Button pressed_button_; | 133 static WebKit::WebMouseEvent::Button pressed_button_; |
135 | 134 |
136 // The last button number passed to mouseDown and mouseUp. | 135 // The last button number passed to mouseDown and mouseUp. |
137 // Used to determine whether the click count continues to | 136 // Used to determine whether the click count continues to |
138 // increment or not. | 137 // increment or not. |
139 static WebKit::WebMouseEvent::Button last_button_type_; | 138 static WebKit::WebMouseEvent::Button last_button_type_; |
140 }; | 139 }; |
141 | 140 |
142 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ | 141 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ |
OLD | NEW |