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

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

Issue 11415014: Stop using shell::GetInstance()->system_tray() in system tray items (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« ui/views/bubble/tray_bubble_view.h ('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..f6e8ed7a5291e16ab48b375077276b65e18a86e6 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::SetMinWidth(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);
}
« ui/views/bubble/tray_bubble_view.h ('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