Android: Add skia_unittests to the list of stable test suites.
[chromium-blink-merge.git] / athena / system / time_view.h
blob060f2c7170bdfc7fb7983a030ff3b1bee9821fd7
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ATHENA_SYSTEM_TIME_VIEW_H_
6 #define ATHENA_SYSTEM_TIME_VIEW_H_
8 #include "athena/system/public/system_ui.h"
9 #include "base/time/time.h"
10 #include "base/timer/timer.h"
11 #include "ui/views/controls/label.h"
13 namespace athena {
15 // View which displays the current time.
16 class TimeView : public views::Label {
17 public:
18 explicit TimeView(SystemUI::ColorScheme color_scheme);
19 ~TimeView() override;
21 private:
22 // Starts |timer_| to schedule the next update.
23 void SetTimer(base::Time now);
25 // Updates the current time.
26 void UpdateText();
28 base::OneShotTimer<TimeView> timer_;
30 DISALLOW_COPY_AND_ASSIGN(TimeView);
33 } // namespace athena
35 #endif // ATHENA_SYSTEM_TIME_VIEW_H_