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

Unified Diff: ui/views/controls/message_box_view.cc

Issue 13925019: fix GridLayout::CreatePanel for new style dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: msw review Created 7 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
« no previous file with comments | « ui/views/controls/message_box_view.h ('k') | ui/views/layout/grid_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/message_box_view.cc
diff --git a/ui/views/controls/message_box_view.cc b/ui/views/controls/message_box_view.cc
index 34c8705ddd5a2bed304778611ea1df435571e10b..0e5708fcceddc95ade83637bfd961060647c3e37 100644
--- a/ui/views/controls/message_box_view.cc
+++ b/ui/views/controls/message_box_view.cc
@@ -66,14 +66,8 @@ MessageBoxView::InitParams::InitParams(const string16& message)
: options(NO_OPTIONS),
message(message),
message_width(kDefaultMessageWidth),
- top_inset(kPanelVertMargin),
- bottom_inset(kPanelVertMargin),
- left_inset(kPanelHorizMargin),
- right_inset(kPanelHorizMargin),
inter_row_vertical_spacing(kRelatedControlVerticalSpacing),
- clipboard_source_tag()
-{
-}
+ clipboard_source_tag() {}
MessageBoxView::InitParams::~InitParams() {
}
@@ -195,10 +189,6 @@ void MessageBoxView::Init(const InitParams& params) {
prompt_field_->SetText(params.default_prompt);
}
- top_inset_ = params.top_inset;
- bottom_inset_ = params.bottom_inset;
- left_inset_ = params.left_inset;
- right_inset_ = params.right_inset;
inter_row_vertical_spacing_ = params.inter_row_vertical_spacing;
source_tag_ = params.clipboard_source_tag;
@@ -208,7 +198,6 @@ void MessageBoxView::Init(const InitParams& params) {
void MessageBoxView::ResetLayoutManager() {
// Initialize the Grid Layout Manager used for this dialog box.
GridLayout* layout = GridLayout::CreatePanel(this);
- layout->SetInsets(top_inset_, bottom_inset_, left_inset_, right_inset_);
SetLayoutManager(layout);
gfx::Size icon_size;
« no previous file with comments | « ui/views/controls/message_box_view.h ('k') | ui/views/layout/grid_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698