OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // Builds the property and method lists needed to bind this class to a JS | 55 // Builds the property and method lists needed to bind this class to a JS |
56 // object. | 56 // object. |
57 EventSender(TestShell*); | 57 EventSender(TestShell*); |
58 | 58 |
59 // Resets some static variable state. | 59 // Resets some static variable state. |
60 void reset(); | 60 void reset(); |
61 | 61 |
62 // Simulate drag&drop system call. | 62 // Simulate drag&drop system call. |
63 void doDragDrop(const WebKit::WebDragData&, WebKit::WebDragOperationsMask); | 63 void doDragDrop(const WebKit::WebDragData&, WebKit::WebDragOperationsMask); |
64 | 64 |
| 65 // Test helper for dragging out images. |
| 66 void dumpFilenameBeingDragged(const CppArgumentList&, CppVariant*); |
| 67 |
65 // JS callback methods. | 68 // JS callback methods. |
66 void mouseDown(const CppArgumentList&, CppVariant*); | 69 void mouseDown(const CppArgumentList&, CppVariant*); |
67 void mouseUp(const CppArgumentList&, CppVariant*); | 70 void mouseUp(const CppArgumentList&, CppVariant*); |
68 void mouseMoveTo(const CppArgumentList&, CppVariant*); | 71 void mouseMoveTo(const CppArgumentList&, CppVariant*); |
69 void leapForward(const CppArgumentList&, CppVariant*); | 72 void leapForward(const CppArgumentList&, CppVariant*); |
70 void keyDown(const CppArgumentList&, CppVariant*); | 73 void keyDown(const CppArgumentList&, CppVariant*); |
71 void dispatchMessage(const CppArgumentList&, CppVariant*); | 74 void dispatchMessage(const CppArgumentList&, CppVariant*); |
72 void textZoomIn(const CppArgumentList&, CppVariant*); | 75 void textZoomIn(const CppArgumentList&, CppVariant*); |
73 void textZoomOut(const CppArgumentList&, CppVariant*); | 76 void textZoomOut(const CppArgumentList&, CppVariant*); |
74 void zoomPageIn(const CppArgumentList&, CppVariant*); | 77 void zoomPageIn(const CppArgumentList&, CppVariant*); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // Currently pressed mouse button (Left/Right/Middle or None) | 157 // Currently pressed mouse button (Left/Right/Middle or None) |
155 static WebKit::WebMouseEvent::Button pressedButton; | 158 static WebKit::WebMouseEvent::Button pressedButton; |
156 | 159 |
157 // The last button number passed to mouseDown and mouseUp. | 160 // The last button number passed to mouseDown and mouseUp. |
158 // Used to determine whether the click count continues to | 161 // Used to determine whether the click count continues to |
159 // increment or not. | 162 // increment or not. |
160 static WebKit::WebMouseEvent::Button lastButtonType; | 163 static WebKit::WebMouseEvent::Button lastButtonType; |
161 }; | 164 }; |
162 | 165 |
163 #endif // EventSender_h | 166 #endif // EventSender_h |
OLD | NEW |