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

Unified Diff: ash/system/user/tray_user.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/tray_user.cc
diff --git a/ash/system/user/tray_user.cc b/ash/system/user/tray_user.cc
index 084ed06a2033210100b1c4ced1f8163f669175ca..0ea42c257e2cd25bd6c22487a8cb352109ae8eaf 100644
--- a/ash/system/user/tray_user.cc
+++ b/ash/system/user/tray_user.cc
@@ -171,6 +171,7 @@ class UserView : public views::View,
private:
// Overridden from views::View.
virtual gfx::Size GetPreferredSize() OVERRIDE;
+ virtual int GetHeightForWidth(int width) OVERRIDE;
virtual void Layout() OVERRIDE;
// Overridden from views::ButtonListener.
@@ -442,6 +443,10 @@ gfx::Size UserView::GetPreferredSize() {
return size;
}
+int UserView::GetHeightForWidth(int width) {
+ return GetPreferredSize().height();
+}
+
void UserView::Layout() {
gfx::Rect contents_area(GetContentsBounds());
if (user_card_ && logout_button_) {
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698