| 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 // This file contains the definition for EventSendingController. | 5 // This file contains the definition for EventSendingController. |
| 6 // | 6 // |
| 7 // Some notes about drag and drop handling: | 7 // Some notes about drag and drop handling: |
| 8 // Windows drag and drop goes through a system call to DoDragDrop. At that | 8 // Windows drag and drop goes through a system call to DoDragDrop. At that |
| 9 // point, program control is given to Windows which then periodically makes | 9 // point, program control is given to Windows which then periodically makes |
| 10 // callbacks into the webview. This won't work for layout tests, so instead, | 10 // callbacks into the webview. This won't work for layout tests, so instead, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #include "base/ref_counted.h" | 24 #include "base/ref_counted.h" |
| 25 #include "base/string_util.h" | 25 #include "base/string_util.h" |
| 26 #include "base/time.h" | 26 #include "base/time.h" |
| 27 #include "webkit/glue/webview.h" | 27 #include "webkit/glue/webview.h" |
| 28 #include "webkit/tools/test_shell/test_shell.h" | 28 #include "webkit/tools/test_shell/test_shell.h" |
| 29 | 29 |
| 30 // TODO(mpcomplete): layout before each event? | 30 // TODO(mpcomplete): layout before each event? |
| 31 // TODO(mpcomplete): do we need modifiers for mouse events? | 31 // TODO(mpcomplete): do we need modifiers for mouse events? |
| 32 | 32 |
| 33 using base::Time; |
| 34 using base::TimeTicks; |
| 35 |
| 33 TestShell* EventSendingController::shell_ = NULL; | 36 TestShell* EventSendingController::shell_ = NULL; |
| 34 gfx::Point EventSendingController::last_mouse_pos_; | 37 gfx::Point EventSendingController::last_mouse_pos_; |
| 35 WebMouseEvent::Button EventSendingController::pressed_button_ = | 38 WebMouseEvent::Button EventSendingController::pressed_button_ = |
| 36 WebMouseEvent::BUTTON_NONE; | 39 WebMouseEvent::BUTTON_NONE; |
| 37 | 40 |
| 38 int EventSendingController::last_button_number_ = -1; | 41 int EventSendingController::last_button_number_ = -1; |
| 39 | 42 |
| 40 namespace { | 43 namespace { |
| 41 | 44 |
| 42 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 void EventSendingController::fireKeyboardEventsToElement( | 570 void EventSendingController::fireKeyboardEventsToElement( |
| 568 const CppArgumentList& args, CppVariant* result) { | 571 const CppArgumentList& args, CppVariant* result) { |
| 569 result->SetNull(); | 572 result->SetNull(); |
| 570 } | 573 } |
| 571 | 574 |
| 572 void EventSendingController::clearKillRing( | 575 void EventSendingController::clearKillRing( |
| 573 const CppArgumentList& args, CppVariant* result) { | 576 const CppArgumentList& args, CppVariant* result) { |
| 574 result->SetNull(); | 577 result->SetNull(); |
| 575 } | 578 } |
| 576 | 579 |
| OLD | NEW |