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

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

Issue 2934503002: Remove references to ui/views/layout/layout_constants.h (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « chrome/browser/ui/views/try_chrome_dialog_view.cc ('k') | ui/views/examples/dialog_example.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 layout->StartRow(0, column_set_id); 55 layout->StartRow(0, column_set_id);
56 confirm_label_ = new views::Label( 56 confirm_label_ = new views::Label(
57 l10n_util::GetStringUTF16(IDS_UNINSTALL_VERIFY)); 57 l10n_util::GetStringUTF16(IDS_UNINSTALL_VERIFY));
58 confirm_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 58 confirm_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
59 layout->AddView(confirm_label_); 59 layout->AddView(confirm_label_);
60 60
61 ChromeLayoutProvider* provider = ChromeLayoutProvider::Get(); 61 ChromeLayoutProvider* provider = ChromeLayoutProvider::Get();
62 62
63 const int checkbox_indent = provider->GetDistanceMetric( 63 const int checkbox_indent = provider->GetDistanceMetric(
64 DISTANCE_SUBSECTION_HORIZONTAL_INDENT); 64 DISTANCE_SUBSECTION_HORIZONTAL_INDENT);
65 const int unrelated_vertical_spacing = provider->GetDistanceMetric( 65 const int unrelated_vertical_spacing =
66 DISTANCE_UNRELATED_CONTROL_VERTICAL); 66 provider->GetDistanceMetric(views::DISTANCE_UNRELATED_CONTROL_VERTICAL);
67 const int related_vertical_spacing = provider->GetDistanceMetric( 67 const int related_vertical_spacing = provider->GetDistanceMetric(
68 views::DISTANCE_RELATED_CONTROL_VERTICAL); 68 views::DISTANCE_RELATED_CONTROL_VERTICAL);
69 const int related_horizontal_spacing = provider->GetDistanceMetric( 69 const int related_horizontal_spacing = provider->GetDistanceMetric(
70 views::DISTANCE_RELATED_CONTROL_HORIZONTAL); 70 views::DISTANCE_RELATED_CONTROL_HORIZONTAL);
71 const int related_vertical_small = provider->GetDistanceMetric( 71 const int related_vertical_small = provider->GetDistanceMetric(
72 DISTANCE_RELATED_CONTROL_VERTICAL_SMALL); 72 DISTANCE_RELATED_CONTROL_VERTICAL_SMALL);
73 73
74 layout->AddPaddingRow(0, unrelated_vertical_spacing); 74 layout->AddPaddingRow(0, unrelated_vertical_spacing);
75 75
76 // The "delete profile" check box. 76 // The "delete profile" check box.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 base::RunLoop run_loop; 188 base::RunLoop run_loop;
189 UninstallView* view = new UninstallView(&result, 189 UninstallView* view = new UninstallView(&result,
190 run_loop.QuitClosure()); 190 run_loop.QuitClosure());
191 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show(); 191 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show();
192 run_loop.Run(); 192 run_loop.Run();
193 return result; 193 return result;
194 } 194 }
195 195
196 } // namespace chrome 196 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/try_chrome_dialog_view.cc ('k') | ui/views/examples/dialog_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698