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

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

Issue 13925006: Declares GetHeightForWidth() for those who need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/system/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_SYSTEM_POWER_POWER_STATUS_VIEW_H_ 5 #ifndef ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_
6 #define ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ 6 #define ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_
7 7
8 #include "ash/system/power/power_supply_status.h" 8 #include "ash/system/power/power_supply_status.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
(...skipping 13 matching lines...) Expand all
24 }; 24 };
25 25
26 PowerStatusView(ViewType view_type, bool default_view_right_align); 26 PowerStatusView(ViewType view_type, bool default_view_right_align);
27 virtual ~PowerStatusView() {} 27 virtual ~PowerStatusView() {}
28 28
29 void UpdatePowerStatus(const PowerSupplyStatus& status); 29 void UpdatePowerStatus(const PowerSupplyStatus& status);
30 const string16& accessible_name() const { return accessible_name_; } 30 const string16& accessible_name() const { return accessible_name_; }
31 31
32 // Overridden from views::View. 32 // Overridden from views::View.
33 virtual gfx::Size GetPreferredSize() OVERRIDE; 33 virtual gfx::Size GetPreferredSize() OVERRIDE;
34 virtual int GetHeightForWidth(int width) OVERRIDE;
34 virtual void Layout() OVERRIDE; 35 virtual void Layout() OVERRIDE;
35 36
36 private: 37 private:
37 void LayoutDefaultView(); 38 void LayoutDefaultView();
38 void LayoutNotificationView(); 39 void LayoutNotificationView();
39 void UpdateText(); 40 void UpdateText();
40 void UpdateIcon(); 41 void UpdateIcon();
41 void Update(); 42 void Update();
42 void UpdateTextForDefaultView(); 43 void UpdateTextForDefaultView();
43 void UpdateTextForNotificationView(); 44 void UpdateTextForNotificationView();
(...skipping 27 matching lines...) Expand all
71 72
72 string16 accessible_name_; 73 string16 accessible_name_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(PowerStatusView); 75 DISALLOW_COPY_AND_ASSIGN(PowerStatusView);
75 }; 76 };
76 77
77 } // namespace internal 78 } // namespace internal
78 } // namespace ash 79 } // namespace ash
79 80
80 #endif // ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ 81 #endif // ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/power/power_status_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698