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

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

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.h
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h
index 6a11e65bab68208995be4982a5df06165411a9b7..b81106f7c07884e5848d070eb42f6b5f2d3c9a6f 100644
--- a/ui/views/window/dialog_delegate.h
+++ b/ui/views/window/dialog_delegate.h
@@ -118,6 +118,10 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
const DialogClientView* GetDialogClientView() const;
DialogClientView* GetDialogClientView();
+ // Returns true if this dialog should have its width snapped. The default
+ // implementation always returns true.
+ virtual bool ShouldSnapFrameWidth() const;
+
protected:
// Overridden from WidgetDelegate:
ui::AXRole GetAccessibleWindowRole() const override;

Powered by Google App Engine
This is Rietveld 408576698