summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/ui_controls_aurawin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/automation/ui_controls_aurawin.cc')
-rw-r--r--chrome/browser/automation/ui_controls_aurawin.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/automation/ui_controls_aurawin.cc b/chrome/browser/automation/ui_controls_aurawin.cc
index 50e5f87..31c92b4 100644
--- a/chrome/browser/automation/ui_controls_aurawin.cc
+++ b/chrome/browser/automation/ui_controls_aurawin.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/automation/ui_controls.h"
#include "base/logging.h"
+#include "base/message_loop.h"
#include "chrome/browser/automation/ui_controls_internal.h"
#include "ui/aura/desktop.h"
#include "ui/views/view.h"
@@ -69,4 +70,9 @@ void MoveMouseToCenterAndPress(views::View* view,
SendMouseEventsNotifyWhenDone(button, state, task);
}
+void RunClosureAfterAllPendingUIEvents(const base::Closure& task) {
+ // On windows, posting UI events is synchronous so just post the closure.
+ MessageLoopForUI::current()->PostTask(FROM_HERE, task);
+}
+
} // namespace ui_controls