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

Unified Diff: chrome/browser/ui/gtk/panels/panel_gtk.cc

Issue 14307023: chrome: Use base::MessageLoop. (Part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months 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
Index: chrome/browser/ui/gtk/panels/panel_gtk.cc
diff --git a/chrome/browser/ui/gtk/panels/panel_gtk.cc b/chrome/browser/ui/gtk/panels/panel_gtk.cc
index 19a597cbac4c5585912c6dd3431bf127320afa6c..2a03450e12f6610c71fd84ed9d7baf0d96aaec36 100644
--- a/chrome/browser/ui/gtk/panels/panel_gtk.cc
+++ b/chrome/browser/ui/gtk/panels/panel_gtk.cc
@@ -717,7 +717,7 @@ void PanelGtk::OnMainWindowDestroy(GtkWidget* widget) {
//
// We don't want to use DeleteSoon() here since it won't work on a nested pump
// (like in UI tests).
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(&base::DeletePointer<PanelGtk>, this));
}
@@ -1061,7 +1061,7 @@ void GtkNativePanelTesting::PressLeftMouseButtonTitlebar(
panel_gtk_->OnTitlebarButtonPressEvent(
NULL, reinterpret_cast<GdkEventButton*>(event));
gdk_event_free(event);
- MessageLoopForUI::current()->RunUntilIdle();
+ base::MessageLoopForUI::current()->RunUntilIdle();
}
void GtkNativePanelTesting::ReleaseMouseButtonTitlebar(
@@ -1078,7 +1078,7 @@ void GtkNativePanelTesting::ReleaseMouseButtonTitlebar(
NULL, reinterpret_cast<GdkEventButton*>(event));
}
gdk_event_free(event);
- MessageLoopForUI::current()->RunUntilIdle();
+ base::MessageLoopForUI::current()->RunUntilIdle();
}
void GtkNativePanelTesting::DragTitlebar(const gfx::Point& mouse_location) {
@@ -1090,14 +1090,14 @@ void GtkNativePanelTesting::DragTitlebar(const gfx::Point& mouse_location) {
panel_gtk_->drag_helper_->OnMouseMoveEvent(
NULL, reinterpret_cast<GdkEventMotion*>(event));
gdk_event_free(event);
- MessageLoopForUI::current()->RunUntilIdle();
+ base::MessageLoopForUI::current()->RunUntilIdle();
}
void GtkNativePanelTesting::CancelDragTitlebar() {
if (!panel_gtk_->drag_helper_.get())
return;
panel_gtk_->drag_helper_->OnGrabBrokenEvent(NULL, NULL);
- MessageLoopForUI::current()->RunUntilIdle();
+ base::MessageLoopForUI::current()->RunUntilIdle();
}
void GtkNativePanelTesting::FinishDragTitlebar() {
« no previous file with comments | « chrome/browser/ui/gtk/one_click_signin_bubble_gtk.cc ('k') | chrome/browser/ui/gtk/process_singleton_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698