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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 9 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
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 3d7a93eecae09d4b4d6f03ab71aef2e27a33c54c..5e341bf52120df552e062e4450b38ec54b4b7976 100644
--- a/ui/views/bubble/tray_bubble_view.cc
+++ b/ui/views/bubble/tray_bubble_view.cc
@@ -298,7 +298,7 @@ base::string16 TrayBubbleView::GetAccessibleWindowTitle() const {
return delegate_->GetAccessibleNameForBubble();
}
-gfx::Size TrayBubbleView::GetPreferredSize() const {
+gfx::Size TrayBubbleView::GetUnsnappedPreferredSize() const {
return gfx::Size(preferred_width_, GetHeightForWidth(preferred_width_));
}

Powered by Google App Engine
This is Rietveld 408576698