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

Unified Diff: base/time.h

Issue 11453012: Fix black background when locking with fullscreen window: (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Tune animation timings Created 8 years 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: base/time.h
diff --git a/base/time.h b/base/time.h
index 78d7456b68ae273c3bf27e8aaf93cd3742efe02c..09788326895ea64604c62a4e165edcfd541a6aa7 100644
--- a/base/time.h
+++ b/base/time.h
@@ -638,6 +638,20 @@ inline TimeTicks TimeDelta::operator+(TimeTicks t) const {
return TimeTicks(t.ticks_ + delta_);
}
+// TimeFactory ----------------------------------------------------------------
+
+class BASE_EXPORT TimeFactory {
brettw 2012/12/12 00:35:09 Can you add a comment for this about what it's for
Denis Kuznetsov (DE-MUC) 2012/12/12 19:20:12 Done.
+ public:
+ virtual Time TimeNow() = 0;
+ virtual TimeTicks TimeTicksNow() = 0;
+ virtual TimeTicks TimeTicksHighResNow() = 0;
brettw 2012/12/12 00:35:09 I'd not bother with this, it makes it more difficu
Denis Kuznetsov (DE-MUC) 2012/12/12 19:20:12 Done.
+
+ static TimeFactory* instance() { return instance_; }
+
+ protected:
+ static TimeFactory* instance_;
+};
+
} // namespace base
#endif // BASE_TIME_H_
« no previous file with comments | « base/test/scoped_time_controller.cc ('k') | base/time.cc » ('j') | base/time.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698