| Index: ash/system/date/date_view.h
|
| diff --git a/ash/system/date/date_view.h b/ash/system/date/date_view.h
|
| index 881c22ad6f1a651a108588d04b9e167921efda12..6ed3ac125875f728e97acbbb6e93b030831da68d 100644
|
| --- a/ash/system/date/date_view.h
|
| +++ b/ash/system/date/date_view.h
|
| @@ -25,13 +25,16 @@ class BaseDateTimeView : public ActionableView {
|
| public:
|
| virtual ~BaseDateTimeView();
|
|
|
| - // Updates the displayed text for the current time.
|
| + // Updates the displayed text for the current time and calls SetTimer().
|
| void UpdateText();
|
|
|
| protected:
|
| BaseDateTimeView();
|
|
|
| private:
|
| + // Starts |timer_| to schedule the next update.
|
| + void SetTimer(const base::Time& now);
|
| +
|
| // Updates labels to display the current time.
|
| virtual void UpdateTextInternal(const base::Time& now) = 0;
|
|
|
| @@ -39,6 +42,7 @@ class BaseDateTimeView : public ActionableView {
|
| virtual void ChildPreferredSizeChanged(views::View* child) OVERRIDE;
|
| virtual void OnLocaleChanged() OVERRIDE;
|
|
|
| + // Invokes UpdateText() when the displayed time should change.
|
| base::OneShotTimer<BaseDateTimeView> timer_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(BaseDateTimeView);
|
|
|