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

Unified Diff: cc/time_source.h

Issue 11411024: cc: Switch time_source.h and timing_function* to Chrome coding style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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: cc/time_source.h
diff --git a/cc/time_source.h b/cc/time_source.h
index 54149af076ab9a3e1d4640b3facce8eb5e060996..081335f42e0591a3514120b0591656dfb8918f70 100644
--- a/cc/time_source.h
+++ b/cc/time_source.h
@@ -11,14 +11,12 @@
namespace cc {
-class Thread;
-
class TimeSourceClient {
-public:
- virtual void onTimerTick() = 0;
+ public:
+ virtual void onTimerTick() = 0;
-protected:
- virtual ~TimeSourceClient() { }
+ protected:
+ virtual ~TimeSourceClient() {}
};
// An generic interface for getting a reliably-ticking timesource of
@@ -27,20 +25,22 @@ protected:
// Be sure to call setActive(false) before releasing your reference to the
// timer, or it will keep on ticking!
class CC_EXPORT TimeSource : public base::RefCounted<TimeSource> {
-public:
- virtual void setClient(TimeSourceClient*) = 0;
- virtual void setActive(bool) = 0;
- virtual bool active() const = 0;
- virtual void setTimebaseAndInterval(base::TimeTicks timebase, base::TimeDelta interval) = 0;
- virtual base::TimeTicks lastTickTime() = 0;
- virtual base::TimeTicks nextTickTime() = 0;
-
-protected:
- virtual ~TimeSource() { }
-
-private:
- friend class base::RefCounted<TimeSource>;
+ public:
+ virtual void setClient(TimeSourceClient*) = 0;
+ virtual void setActive(bool) = 0;
+ virtual bool active() const = 0;
+ virtual void setTimebaseAndInterval(base::TimeTicks timebase,
+ base::TimeDelta interval) = 0;
+ virtual base::TimeTicks lastTickTime() = 0;
+ virtual base::TimeTicks nextTickTime() = 0;
+
+ protected:
+ virtual ~TimeSource() {}
+
+ private:
+ friend class base::RefCounted<TimeSource>;
};
-}
+} // namespace cc
+
#endif // CC_TIME_SOURCE_H_
« no previous file with comments | « cc/delay_based_time_source.h ('k') | cc/timing_function.h » ('j') | cc/timing_function.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698