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

Unified Diff: ui/views/mouse_watcher.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/views/focus/accelerator_handler.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mouse_watcher.cc
diff --git a/ui/views/mouse_watcher.cc b/ui/views/mouse_watcher.cc
index 88ec5f4574e492ce6be5c9b762a4aea0943e5cf1..b74aa6a772e0354ebd2b3212bb7bb6fac905e06f 100644
--- a/ui/views/mouse_watcher.cc
+++ b/ui/views/mouse_watcher.cc
@@ -19,16 +19,16 @@ namespace views {
// the listener is notified.
const int kNotifyListenerTimeMs = 300;
-class MouseWatcher::Observer : public MessageLoopForUI::Observer {
+class MouseWatcher::Observer : public base::MessageLoopForUI::Observer {
public:
explicit Observer(MouseWatcher* mouse_watcher)
: mouse_watcher_(mouse_watcher),
notify_listener_factory_(this) {
- MessageLoopForUI::current()->AddObserver(this);
+ base::MessageLoopForUI::current()->AddObserver(this);
}
virtual ~Observer() {
- MessageLoopForUI::current()->RemoveObserver(this);
+ base::MessageLoopForUI::current()->RemoveObserver(this);
}
// MessageLoop::Observer implementation:
@@ -94,13 +94,13 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer {
// Mouse moved outside the host's zone, start a timer to notify the
// listener.
if (!notify_listener_factory_.HasWeakPtrs()) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&Observer::NotifyListener,
notify_listener_factory_.GetWeakPtr()),
- event_type == MouseWatcherHost::MOUSE_MOVE ?
- base::TimeDelta::FromMilliseconds(kNotifyListenerTimeMs) :
- mouse_watcher_->notify_on_exit_time_);
+ event_type == MouseWatcherHost::MOUSE_MOVE
+ ? base::TimeDelta::FromMilliseconds(kNotifyListenerTimeMs)
+ : mouse_watcher_->notify_on_exit_time_);
}
} else {
// Mouse moved quickly out of the host and then into it again, so cancel
« no previous file with comments | « ui/views/focus/accelerator_handler.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698