| 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_SYSTEM_DATE_DATE_VIEW_H_ | 5 #ifndef ASH_SYSTEM_DATE_DATE_VIEW_H_ |
| 6 #define ASH_SYSTEM_DATE_DATE_VIEW_H_ | 6 #define ASH_SYSTEM_DATE_DATE_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/date/tray_date.h" | 9 #include "ash/system/date/tray_date.h" |
| 10 #include "ash/system/tray/actionable_view.h" | 10 #include "ash/system/tray/actionable_view.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Overridden from BaseDateTimeView. | 104 // Overridden from BaseDateTimeView. |
| 105 virtual void UpdateTextInternal(const base::Time& now) OVERRIDE; | 105 virtual void UpdateTextInternal(const base::Time& now) OVERRIDE; |
| 106 | 106 |
| 107 // Overridden from ActionableView. | 107 // Overridden from ActionableView. |
| 108 virtual bool PerformAction(const ui::Event& event) OVERRIDE; | 108 virtual bool PerformAction(const ui::Event& event) OVERRIDE; |
| 109 | 109 |
| 110 // Overridden from views::View. | 110 // Overridden from views::View. |
| 111 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 111 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 112 | 112 |
| 113 void SetBorder(TrayDate::ClockLayout clock_layout); | 113 void SetBorderFromLayout(TrayDate::ClockLayout clock_layout); |
| 114 void SetupLabels(); | 114 void SetupLabels(); |
| 115 void SetupLabel(views::Label* label); | 115 void SetupLabel(views::Label* label); |
| 116 | 116 |
| 117 // Label text used for the normal horizontal shelf. | 117 // Label text used for the normal horizontal shelf. |
| 118 scoped_ptr<views::Label> horizontal_label_; | 118 scoped_ptr<views::Label> horizontal_label_; |
| 119 | 119 |
| 120 // The time label is split into two lines for the vertical shelf. | 120 // The time label is split into two lines for the vertical shelf. |
| 121 scoped_ptr<views::Label> vertical_label_hours_; | 121 scoped_ptr<views::Label> vertical_label_hours_; |
| 122 scoped_ptr<views::Label> vertical_label_minutes_; | 122 scoped_ptr<views::Label> vertical_label_minutes_; |
| 123 | 123 |
| 124 base::HourClockType hour_type_; | 124 base::HourClockType hour_type_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(TimeView); | 126 DISALLOW_COPY_AND_ASSIGN(TimeView); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace tray | 129 } // namespace tray |
| 130 } // namespace internal | 130 } // namespace internal |
| 131 } // namespace ash | 131 } // namespace ash |
| 132 | 132 |
| 133 #endif // ASH_SYSTEM_DATE_DATE_VIEW_H_ | 133 #endif // ASH_SYSTEM_DATE_DATE_VIEW_H_ |
| OLD | NEW |