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

Unified Diff: ui/views/mouse_watcher.h

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/controls/textfield/native_textfield_views.cc ('k') | ui/views/mouse_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mouse_watcher.h
diff --git a/ui/views/mouse_watcher.h b/ui/views/mouse_watcher.h
index d3cb62ae3a82d329896adc96dd0da9bb109d73a8..fc5213add912e94bb84a6472421b2c57bbd04626 100644
--- a/ui/views/mouse_watcher.h
+++ b/ui/views/mouse_watcher.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
#include "ui/gfx/insets.h"
#include "ui/views/views_export.h"
@@ -58,7 +59,9 @@ class VIEWS_EXPORT MouseWatcher {
// Sets the amount to delay before notifying the listener when the mouse exits
// the host by way of going to another window.
- void set_notify_on_exit_time_ms(int time) { notify_on_exit_time_ms_ = time; }
+ void set_notify_on_exit_time(base::TimeDelta time) {
+ notify_on_exit_time_ = time;
+ }
// Starts watching mouse movements. When the mouse moves outside the bounds of
// the host the listener is notified. |Start| may be invoked any number of
@@ -88,7 +91,7 @@ class VIEWS_EXPORT MouseWatcher {
scoped_ptr<Observer> observer_;
// See description above setter.
- int notify_on_exit_time_ms_;
+ base::TimeDelta notify_on_exit_time_;
DISALLOW_COPY_AND_ASSIGN(MouseWatcher);
};
« no previous file with comments | « ui/views/controls/textfield/native_textfield_views.cc ('k') | ui/views/mouse_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698