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

Unified Diff: ui/views/mouse_watcher.cc

Issue 10026013: Update use of TimeDelta in chrome/browser/*, ui/views/*, and other places. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase onto master. Created 8 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/views/mouse_watcher.h ('k') | ui/views/widget/aero_tooltip_manager.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 0ade7660fe9ec5f5e450227be5d3f3055c93a00d..6e0a8c0265b1d79e445fb4ffda93aec3d7c0ea73 100644
--- a/ui/views/mouse_watcher.cc
+++ b/ui/views/mouse_watcher.cc
@@ -95,9 +95,9 @@ class MouseWatcher::Observer : public MessageLoopForUI::Observer {
FROM_HERE,
base::Bind(&Observer::NotifyListener,
notify_listener_factory_.GetWeakPtr()),
- event_type ==
- MouseWatcherHost::MOUSE_MOVE ? kNotifyListenerTimeMs :
- mouse_watcher_->notify_on_exit_time_ms_);
+ 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
@@ -130,7 +130,8 @@ MouseWatcher::MouseWatcher(MouseWatcherHost* host,
MouseWatcherListener* listener)
: host_(host),
listener_(listener),
- notify_on_exit_time_ms_(kNotifyListenerTimeMs) {
+ notify_on_exit_time_(base::TimeDelta::FromMilliseconds(
+ kNotifyListenerTimeMs)) {
}
MouseWatcher::~MouseWatcher() {
« no previous file with comments | « ui/views/mouse_watcher.h ('k') | ui/views/widget/aero_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698