| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_COMMON_SYSTEM_DATE_DATE_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_DATE_DATE_VIEW_H_ |
| 6 #define ASH_COMMON_SYSTEM_DATE_DATE_VIEW_H_ | 6 #define ASH_COMMON_SYSTEM_DATE_DATE_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Abstract base class containing common updating and layout code for the | 29 // Abstract base class containing common updating and layout code for the |
| 30 // DateView popup and the TimeView tray icon. Exported for tests. | 30 // DateView popup and the TimeView tray icon. Exported for tests. |
| 31 class ASH_EXPORT BaseDateTimeView : public ActionableView { | 31 class ASH_EXPORT BaseDateTimeView : public ActionableView { |
| 32 public: | 32 public: |
| 33 ~BaseDateTimeView() override; | 33 ~BaseDateTimeView() override; |
| 34 | 34 |
| 35 // Updates the displayed text for the current time and calls SetTimer(). | 35 // Updates the displayed text for the current time and calls SetTimer(). |
| 36 void UpdateText(); | 36 void UpdateText(); |
| 37 | 37 |
| 38 // views::View: | 38 // views::View: |
| 39 void GetAccessibleState(ui::AXViewState* state) override; | 39 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 explicit BaseDateTimeView(SystemTrayItem* owner); | 42 explicit BaseDateTimeView(SystemTrayItem* owner); |
| 43 | 43 |
| 44 // Updates labels to display the current time. | 44 // Updates labels to display the current time. |
| 45 virtual void UpdateTextInternal(const base::Time& now); | 45 virtual void UpdateTextInternal(const base::Time& now); |
| 46 | 46 |
| 47 // Time format (12/24hr) used for accessibility string. | 47 // Time format (12/24hr) used for accessibility string. |
| 48 base::HourClockType hour_type_; | 48 base::HourClockType hour_type_; |
| 49 | 49 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 std::unique_ptr<views::Label> vertical_label_hours_; | 152 std::unique_ptr<views::Label> vertical_label_hours_; |
| 153 std::unique_ptr<views::Label> vertical_label_minutes_; | 153 std::unique_ptr<views::Label> vertical_label_minutes_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(TimeView); | 155 DISALLOW_COPY_AND_ASSIGN(TimeView); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace tray | 158 } // namespace tray |
| 159 } // namespace ash | 159 } // namespace ash |
| 160 | 160 |
| 161 #endif // ASH_COMMON_SYSTEM_DATE_DATE_VIEW_H_ | 161 #endif // ASH_COMMON_SYSTEM_DATE_DATE_VIEW_H_ |
| OLD | NEW |