| 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. |
| 11 | 11 |
| 12 The OSX reference file is in | 12 The OSX reference file is in |
| 13 WebKit/WebKitTools/DumpRenderTree/EventSendingController.m | 13 WebKit/Tools/DumpRenderTree/EventSendingController.m |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #ifndef WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ | 16 #ifndef WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ |
| 17 #define WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ | 17 #define WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ |
| 18 | 18 |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "gfx/point.h" | 20 #include "gfx/point.h" |
| 21 #include "base/task.h" | 21 #include "base/task.h" |
| 22 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
| 23 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 23 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Currently pressed mouse button (Left/Right/Middle or None) | 138 // Currently pressed mouse button (Left/Right/Middle or None) |
| 139 static WebKit::WebMouseEvent::Button pressed_button_; | 139 static WebKit::WebMouseEvent::Button pressed_button_; |
| 140 | 140 |
| 141 // The last button number passed to mouseDown and mouseUp. | 141 // The last button number passed to mouseDown and mouseUp. |
| 142 // Used to determine whether the click count continues to | 142 // Used to determine whether the click count continues to |
| 143 // increment or not. | 143 // increment or not. |
| 144 static WebKit::WebMouseEvent::Button last_button_type_; | 144 static WebKit::WebMouseEvent::Button last_button_type_; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ | 147 #endif // WEBKIT_TOOLS_TEST_SHELL_EVENT_SENDING_CONTROLLER_H_ |
| OLD | NEW |