Index: chrome/browser/automation/ui_controls_gtk.cc |
=================================================================== |
--- chrome/browser/automation/ui_controls_gtk.cc (revision 113187) |
+++ chrome/browser/automation/ui_controls_gtk.cc (working copy) |
@@ -310,4 +310,13 @@ |
} |
#endif |
+#if defined(TOOLKIT_VIEWS) |
+void RunClosureAfterAllPendingUIEvents(const base::Closure& task) { |
+ // Send noop event and run task. |
+ int x, y; |
+ gdk_window_at_pointer(&x, &y); |
+ SendMouseMoveNotifyWhenDone(x, y, task); |
+} |
+#endif |
+ |
} // namespace ui_controls |