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

Side by Side Diff: ash/common/system/chromeos/power/power_status_view.h

Issue 2605513002: [ash-md] Changed the system info row height to 40 (instead of 48). (Closed)
Patch Set: Created 3 years, 12 months 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 | « no previous file | ash/common/system/chromeos/power/power_status_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_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/system/chromeos/power/power_status.h" 9 #include "ash/common/system/chromeos/power/power_status.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "ui/views/view.h" 12 #include "ui/views/view.h"
13 13
14 namespace views { 14 namespace views {
15 class ImageView; 15 class ImageView;
16 class Label; 16 class Label;
17 } 17 }
18 18
19 namespace ash { 19 namespace ash {
20 20
21 class ASH_EXPORT PowerStatusView : public views::View, 21 class ASH_EXPORT PowerStatusView : public views::View,
22 public PowerStatus::Observer { 22 public PowerStatus::Observer {
23 public: 23 public:
24 explicit PowerStatusView(bool default_view_right_align); 24 explicit PowerStatusView(bool default_view_right_align);
25 ~PowerStatusView() override; 25 ~PowerStatusView() override;
26 26
27 // views::View: 27 // views::View:
28 gfx::Size GetPreferredSize() const override;
29 int GetHeightForWidth(int width) const override;
30 void Layout() override; 28 void Layout() override;
31 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 29 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
32 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 30 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
33 31
34 // PowerStatus::Observer: 32 // PowerStatus::Observer:
35 void OnPowerStatusChanged() override; 33 void OnPowerStatusChanged() override;
36 34
37 private: 35 private:
38 friend class PowerStatusViewTest; 36 friend class PowerStatusViewTest;
39 37
(...skipping 21 matching lines...) Expand all
61 59
62 // Only used in material design. 60 // Only used in material design.
63 base::string16 accessible_name_; 61 base::string16 accessible_name_;
64 62
65 DISALLOW_COPY_AND_ASSIGN(PowerStatusView); 63 DISALLOW_COPY_AND_ASSIGN(PowerStatusView);
66 }; 64 };
67 65
68 } // namespace ash 66 } // namespace ash
69 67
70 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ 68 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/system/chromeos/power/power_status_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698