diff options
Diffstat (limited to 'chrome/browser/automation/ui_controls_win.cc')
-rw-r--r-- | chrome/browser/automation/ui_controls_win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/automation/ui_controls_win.cc b/chrome/browser/automation/ui_controls_win.cc index 5d2c873..744928f 100644 --- a/chrome/browser/automation/ui_controls_win.cc +++ b/chrome/browser/automation/ui_controls_win.cc @@ -5,6 +5,7 @@ #include "chrome/browser/automation/ui_controls.h" #include "base/callback.h" +#include "base/message_loop.h" #include "chrome/browser/automation/ui_controls_internal.h" #include "ui/gfx/point.h" #include "ui/views/view.h" @@ -65,4 +66,9 @@ void MoveMouseToCenterAndPress(views::View* view, SendMouseEventsNotifyWhenDone(button, state, task); } +void RunClosureAfterAllPendingUIEvents(const base::Closure& closure) { + // On windows, posting UI events is synchronous so just post the closure. + MessageLoopForUI::current()->PostTask(FROM_HERE, closure); +} + } // ui_controls |