Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: chrome/browser/automation/ui_controls_gtk.cc

Issue 8799020: process all ui events before posting closure because menu depends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/automation/ui_controls_aurax11.cc ('k') | chrome/browser/automation/ui_controls_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/ui_controls_gtk.cc
diff --git a/chrome/browser/automation/ui_controls_gtk.cc b/chrome/browser/automation/ui_controls_gtk.cc
index 32e31007ee601fd9b4757592318f0960bcc4574b..8826609eaab1b6024c99bf6f499f0e7dde349966 100644
--- a/chrome/browser/automation/ui_controls_gtk.cc
+++ b/chrome/browser/automation/ui_controls_gtk.cc
@@ -310,4 +310,13 @@ void MoveMouseToCenterAndPress(GtkWidget* widget,
}
#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
« no previous file with comments | « chrome/browser/automation/ui_controls_aurax11.cc ('k') | chrome/browser/automation/ui_controls_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698