Index: chrome/browser/automation/ui_controls_win.cc |
=================================================================== |
--- chrome/browser/automation/ui_controls_win.cc (revision 113187) |
+++ chrome/browser/automation/ui_controls_win.cc (working copy) |
@@ -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 @@ |
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 |