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

Unified Diff: views/event.h

Issue 6267002: Implement double/triple click functionality in views textfield. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: refactoring Created 9 years, 11 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 | « views/controls/textfield/textfield_views_model_unittest.cc ('k') | views/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/event.h
diff --git a/views/event.h b/views/event.h
index 381588640f5ea38ae03619db179879f8b62919bd..c893eeafa79de26667dd00f898d675c5b33ce58a 100644
--- a/views/event.h
+++ b/views/event.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/basictypes.h"
+#include "base/time.h"
#include "gfx/point.h"
#include "ui/base/keycodes/keyboard_codes.h"
@@ -80,8 +81,8 @@ class Event {
return type_;
}
- // Return the event time stamp in ticks
- int GetTimeStamp() const {
+ // Return the event time stamp.
+ const base::Time& GetTimeStamp() const {
return time_stamp_;
}
@@ -157,7 +158,7 @@ class Event {
void operator=(const Event&);
EventType type_;
- int time_stamp_;
+ base::Time time_stamp_;
int flags_;
};
« no previous file with comments | « views/controls/textfield/textfield_views_model_unittest.cc ('k') | views/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698