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

Side by Side Diff: chrome/browser/ui/views/uninstall_view.cc

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)
Patch Set: remove old DEPS entry 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/uninstall_view.h" 5 #include "chrome/browser/ui/views/uninstall_view.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/process/launch.h" 8 #include "base/process/launch.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "chrome/browser/lifetime/keep_alive_types.h" 10 #include "chrome/browser/lifetime/keep_alive_types.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Delete Combobox as it holds a reference to us. 41 // Delete Combobox as it holds a reference to us.
42 delete browsers_combo_; 42 delete browsers_combo_;
43 } 43 }
44 44
45 void UninstallView::SetupControls() { 45 void UninstallView::SetupControls() {
46 using views::ColumnSet; 46 using views::ColumnSet;
47 using views::GridLayout; 47 using views::GridLayout;
48 48
49 GridLayout* layout = GridLayout::CreatePanel(this); 49 GridLayout* layout = GridLayout::CreatePanel(this);
50 SetLayoutManager(layout);
51 50
52 // Message to confirm uninstallation. 51 // Message to confirm uninstallation.
53 int column_set_id = 0; 52 int column_set_id = 0;
54 ColumnSet* column_set = layout->AddColumnSet(column_set_id); 53 ColumnSet* column_set = layout->AddColumnSet(column_set_id);
55 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, 54 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0,
56 GridLayout::USE_PREF, 0, 0); 55 GridLayout::USE_PREF, 0, 0);
57 layout->StartRow(0, column_set_id); 56 layout->StartRow(0, column_set_id);
58 confirm_label_ = new views::Label( 57 confirm_label_ = new views::Label(
59 l10n_util::GetStringUTF16(IDS_UNINSTALL_VERIFY)); 58 l10n_util::GetStringUTF16(IDS_UNINSTALL_VERIFY));
60 confirm_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 59 confirm_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 176
178 base::RunLoop run_loop; 177 base::RunLoop run_loop;
179 UninstallView* view = new UninstallView(&result, 178 UninstallView* view = new UninstallView(&result,
180 run_loop.QuitClosure()); 179 run_loop.QuitClosure());
181 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show(); 180 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show();
182 run_loop.Run(); 181 run_loop.Run();
183 return result; 182 return result;
184 } 183 }
185 184
186 } // namespace chrome 185 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc ('k') | ui/views/layout/grid_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698