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

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

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
Index: ui/aura/mus/mus_mouse_location_updater.h
diff --git a/ui/aura/mus/mus_mouse_location_updater.h b/ui/aura/mus/mus_mouse_location_updater.h
index d8200496ab879976203415a7b68ac49c05f1605f..982fdac2a8be665a66e28da110d99dc1a4a710c5 100644
--- a/ui/aura/mus/mus_mouse_location_updater.h
+++ b/ui/aura/mus/mus_mouse_location_updater.h
@@ -6,7 +6,7 @@
#define UI_AURA_MUS_MUS_MOUSE_LOCATION_UPDATER_H_
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
namespace ui {
class Event;
@@ -21,7 +21,7 @@ namespace aura {
// Env uses the value from the current event, otherwise Env uses
// WindowTreeClient::GetCursorScreenPoint(). If a nested message loop is
// started while processing an event Env uses GetCursorScreenPoint().
-class MusMouseLocationUpdater : public base::MessageLoop::NestingObserver {
+class MusMouseLocationUpdater : public base::RunLoop::NestingObserver {
public:
MusMouseLocationUpdater();
~MusMouseLocationUpdater() override;
@@ -36,8 +36,8 @@ class MusMouseLocationUpdater : public base::MessageLoop::NestingObserver {
// location.
void UseCursorScreenPoint();
- // base::MessageLoop::NestingObserver:
- void OnBeginNestedMessageLoop() override;
+ // base::RunLoop::NestingObserver:
+ void OnBeginNestedRunLoop() override;
// Set to true while processing a valid mouse event.
bool is_processing_trigger_event_ = false;

Powered by Google App Engine
This is Rietveld 408576698