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

Unified Diff: ui/views/bubble/tray_bubble_view.cc

Issue 11377133: Customize user details in ash system bubble for public account mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Massively overhauled and redone implementation. Created 8 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 side-by-side diff with in-line comments
Download patch
« ash/system/user/tray_user.cc ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/tray_bubble_view.cc
diff --git a/ui/views/bubble/tray_bubble_view.cc b/ui/views/bubble/tray_bubble_view.cc
index 7ff4112f38a5935db57f813b4ca2813055d72ec6..bb087bab65507a44b807a0b361596c673e638926 100644
--- a/ui/views/bubble/tray_bubble_view.cc
+++ b/ui/views/bubble/tray_bubble_view.cc
@@ -306,6 +306,14 @@ void TrayBubbleView::SetMaxHeight(int height) {
SizeToContents();
}
+void TrayBubbleView::SetWidth(int width) {
+ if (params_.bubble_width == width)
+ return;
+ params_.bubble_width = width;
+ if (GetWidget())
+ SizeToContents();
+}
+
void TrayBubbleView::SetPaintArrow(bool paint_arrow) {
bubble_border_->set_paint_arrow(paint_arrow);
}
« ash/system/user/tray_user.cc ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698