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

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

Issue 15667004: Add resize support for Views new style dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index f020d92e69d5c1ff11c5e4940332e0f5c62be7c1..8940b498254c47932c940858958bfeda08244a77 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -150,6 +150,10 @@ DialogDelegate* DialogDelegate::AsDialogDelegate() {
return this;
}
+bool DialogDelegate::CanResize() const {
+ return true;
sky 2013/05/23 14:44:11 Won't this make all dialogs resizable?
msw 2013/05/23 19:30:04 Doh! Removed, thanks for the catch.
+}
+
ClientView* DialogDelegate::CreateClientView(Widget* widget) {
return new DialogClientView(widget, GetContentsView());
}
@@ -188,7 +192,6 @@ NonClientFrameView* DialogDelegate::CreateNewStyleFrameView(
frame->SetTitlebarExtraView(titlebar_view);
}
frame->SetShowCloseButton(widget->widget_delegate()->ShouldShowCloseButton());
- frame->set_can_drag(true);
if (force_opaque_border)
widget->set_frame_type(views::Widget::FRAME_TYPE_FORCE_CUSTOM);
return frame;
« no previous file with comments | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698