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

Unified Diff: ui/aura/mus/mus_mouse_location_updater.cc

Issue 2818533003: Make nesting/running states a RunLoop rather than a MessageLoop concept. (Closed)
Patch Set: still need to check MessageLoop::current() in Mojo's RunLoopNestingObserver::GetForThread() Created 3 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
« no previous file with comments | « ui/aura/mus/mus_mouse_location_updater.h ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/mus_mouse_location_updater.cc
diff --git a/ui/aura/mus/mus_mouse_location_updater.cc b/ui/aura/mus/mus_mouse_location_updater.cc
index cbf89bd620a7980583599cc32916739fda36b711..fbb43f27f908b7826dfadc69f8b7b30d4c44298b 100644
--- a/ui/aura/mus/mus_mouse_location_updater.cc
+++ b/ui/aura/mus/mus_mouse_location_updater.cc
@@ -29,11 +29,11 @@ bool IsMouseEventWithLocation(const ui::Event& event) {
} // namespace
MusMouseLocationUpdater::MusMouseLocationUpdater() {
- base::MessageLoop::current()->AddNestingObserver(this);
+ base::RunLoop::AddNestingObserverOnCurrentThread(this);
}
MusMouseLocationUpdater::~MusMouseLocationUpdater() {
- base::MessageLoop::current()->RemoveNestingObserver(this);
+ base::RunLoop::RemoveNestingObserverOnCurrentThread(this);
}
void MusMouseLocationUpdater::OnEventProcessingStarted(const ui::Event& event) {
@@ -60,7 +60,7 @@ void MusMouseLocationUpdater::UseCursorScreenPoint() {
Env::GetInstance()->get_last_mouse_location_from_mus_ = true;
}
-void MusMouseLocationUpdater::OnBeginNestedMessageLoop() {
+void MusMouseLocationUpdater::OnBeginNestedRunLoop() {
UseCursorScreenPoint();
}
« no previous file with comments | « ui/aura/mus/mus_mouse_location_updater.h ('k') | ui/aura/mus/window_tree_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698