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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void mouseMoveTo(const CppArgumentList& args, CppVariant* result); | 48 void mouseMoveTo(const CppArgumentList& args, CppVariant* result); |
49 void leapForward(const CppArgumentList& args, CppVariant* result); | 49 void leapForward(const CppArgumentList& args, CppVariant* result); |
50 void keyDown(const CppArgumentList& args, CppVariant* result); | 50 void keyDown(const CppArgumentList& args, CppVariant* result); |
51 void dispatchMessage(const CppArgumentList& args, CppVariant* result); | 51 void dispatchMessage(const CppArgumentList& args, CppVariant* result); |
52 void textZoomIn(const CppArgumentList& args, CppVariant* result); | 52 void textZoomIn(const CppArgumentList& args, CppVariant* result); |
53 void textZoomOut(const CppArgumentList& args, CppVariant* result); | 53 void textZoomOut(const CppArgumentList& args, CppVariant* result); |
54 void zoomPageIn(const CppArgumentList& args, CppVariant* result); | 54 void zoomPageIn(const CppArgumentList& args, CppVariant* result); |
55 void zoomPageOut(const CppArgumentList& args, CppVariant* result); | 55 void zoomPageOut(const CppArgumentList& args, CppVariant* result); |
56 void scheduleAsynchronousClick(const CppArgumentList& args, | 56 void scheduleAsynchronousClick(const CppArgumentList& args, |
57 CppVariant* result); | 57 CppVariant* result); |
| 58 void beginDragWithFiles(const CppArgumentList& args, CppVariant* result); |
| 59 CppVariant dragMode; |
58 | 60 |
59 // Unimplemented stubs | 61 // Unimplemented stubs |
60 void contextClick(const CppArgumentList& args, CppVariant* result); | 62 void contextClick(const CppArgumentList& args, CppVariant* result); |
61 void enableDOMUIEventLogging(const CppArgumentList& args, CppVariant* result); | 63 void enableDOMUIEventLogging(const CppArgumentList& args, CppVariant* result); |
62 void fireKeyboardEventsToElement(const CppArgumentList& args, CppVariant* resu
lt); | 64 void fireKeyboardEventsToElement(const CppArgumentList& args, CppVariant* resu
lt); |
63 void clearKillRing(const CppArgumentList& args, CppVariant* result); | 65 void clearKillRing(const CppArgumentList& args, CppVariant* result); |
64 CppVariant dragMode; | |
65 | 66 |
66 // Properties used in layout tests. | 67 // Properties used in layout tests. |
67 #if defined(OS_WIN) | 68 #if defined(OS_WIN) |
68 CppVariant wmKeyDown; | 69 CppVariant wmKeyDown; |
69 CppVariant wmKeyUp; | 70 CppVariant wmKeyUp; |
70 CppVariant wmChar; | 71 CppVariant wmChar; |
71 CppVariant wmDeadChar; | 72 CppVariant wmDeadChar; |
72 CppVariant wmSysKeyDown; | 73 CppVariant wmSysKeyDown; |
73 CppVariant wmSysKeyUp; | 74 CppVariant wmSysKeyUp; |
74 CppVariant wmSysChar; | 75 CppVariant wmSysChar; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Currently pressed mouse button (Left/Right/Middle or None) | 112 // Currently pressed mouse button (Left/Right/Middle or None) |
112 static WebKit::WebMouseEvent::Button pressed_button_; | 113 static WebKit::WebMouseEvent::Button pressed_button_; |
113 | 114 |
114 // The last button number passed to mouseDown and mouseUp. | 115 // The last button number passed to mouseDown and mouseUp. |
115 // Used to determine whether the click count continues to | 116 // Used to determine whether the click count continues to |
116 // increment or not. | 117 // increment or not. |
117 static int last_button_number_; | 118 static int last_button_number_; |
118 }; | 119 }; |
119 | 120 |
120 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ | 121 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ |
OLD | NEW |