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

Unified Diff: ui/views/window/dialog_delegate.cc

Issue 2750063002: views: implement dialog width snapping (Closed)
Patch Set: width -> min_width and improve tests Created 3 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
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 9122b1033bb867694c0a3ae7ed03c7cd9fc450ca..a789aee29c0357ff1deed5d3ee13ab622adbe48c 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -227,6 +227,10 @@ DialogClientView* DialogDelegate::GetDialogClientView() {
return GetWidget()->client_view()->AsDialogClientView();
}
+bool DialogDelegate::ShouldSnapFrameWidth() const {
+ return true;
Peter Kasting 2017/04/06 06:32:16 Since this patch already makes bubbles-that-aren't
+}
+
ui::AXRole DialogDelegate::GetAccessibleWindowRole() const {
return ui::AX_ROLE_DIALOG;
}
« ui/views/bubble/bubble_frame_view_unittest.cc ('K') | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698