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

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

Issue 11377005: Replace Label::Alignment with gfx::HorizontalAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remaining Label::Alignment references. Created 8 years, 1 month 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 | Annotate | Revision Log
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.h" 7 #include "base/message_loop.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "chrome/browser/shell_integration.h" 10 #include "chrome/browser/shell_integration.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 SetLayoutManager(layout); 46 SetLayoutManager(layout);
47 47
48 // Message to confirm uninstallation. 48 // Message to confirm uninstallation.
49 int column_set_id = 0; 49 int column_set_id = 0;
50 ColumnSet* column_set = layout->AddColumnSet(column_set_id); 50 ColumnSet* column_set = layout->AddColumnSet(column_set_id);
51 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, 51 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0,
52 GridLayout::USE_PREF, 0, 0); 52 GridLayout::USE_PREF, 0, 0);
53 layout->StartRow(0, column_set_id); 53 layout->StartRow(0, column_set_id);
54 confirm_label_ = new views::Label( 54 confirm_label_ = new views::Label(
55 l10n_util::GetStringUTF16(IDS_UNINSTALL_VERIFY)); 55 l10n_util::GetStringUTF16(IDS_UNINSTALL_VERIFY));
56 confirm_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 56 confirm_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
57 layout->AddView(confirm_label_); 57 layout->AddView(confirm_label_);
58 58
59 layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); 59 layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
60 60
61 // The "delete profile" check box. 61 // The "delete profile" check box.
62 ++column_set_id; 62 ++column_set_id;
63 column_set = layout->AddColumnSet(column_set_id); 63 column_set = layout->AddColumnSet(column_set_id);
64 column_set->AddPaddingColumn(0, views::kRelatedControlHorizontalSpacing); 64 column_set->AddPaddingColumn(0, views::kRelatedControlHorizontalSpacing);
65 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, 65 column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0,
66 GridLayout::USE_PREF, 0, 0); 66 GridLayout::USE_PREF, 0, 0);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 int result = content::RESULT_CODE_NORMAL_EXIT; 168 int result = content::RESULT_CODE_NORMAL_EXIT;
169 views::AcceleratorHandler accelerator_handler; 169 views::AcceleratorHandler accelerator_handler;
170 base::RunLoop run_loop(&accelerator_handler); 170 base::RunLoop run_loop(&accelerator_handler);
171 UninstallView* view = new UninstallView(&result, run_loop.QuitClosure()); 171 UninstallView* view = new UninstallView(&result, run_loop.QuitClosure());
172 views::Widget::CreateWindow(view)->Show(); 172 views::Widget::CreateWindow(view)->Show();
173 run_loop.Run(); 173 run_loop.Run();
174 return result; 174 return result;
175 } 175 }
176 176
177 } // namespace chrome 177 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc ('k') | chrome/browser/ui/views/web_intent_picker_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698