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

Side by Side Diff: ash/common/system/date/date_view.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/common/system/chromeos/tray_caps_lock.cc ('k') | ash/common/system/date/date_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/tray_caps_lock.cc ('k') | ash/common/system/date/date_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698