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

Side by Side Diff: chrome/browser/ui/views/extensions/media_galleries_dialog_views.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/extensions/media_galleries_dialog_views.h" 5 #include "chrome/browser/ui/views/extensions/media_galleries_dialog_views.h"
6 6
7 #include "chrome/browser/ui/tab_contents/tab_contents.h" 7 #include "chrome/browser/ui/tab_contents/tab_contents.h"
8 #include "chrome/browser/ui/views/constrained_window_views.h" 8 #include "chrome/browser/ui/views/constrained_window_views.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 views::Widget::GetLocalizedContentsWidth( 83 views::Widget::GetLocalizedContentsWidth(
84 IDS_MEDIA_GALLERIES_DIALOG_CONTENT_WIDTH_CHARS), 84 IDS_MEDIA_GALLERIES_DIALOG_CONTENT_WIDTH_CHARS),
85 0); 85 0);
86 contents_->SetLayoutManager(layout); 86 contents_->SetLayoutManager(layout);
87 87
88 // Header text. 88 // Header text.
89 if (!enable_chrome_style_) { 89 if (!enable_chrome_style_) {
90 views::Label* header = new views::Label(controller_->GetHeader()); 90 views::Label* header = new views::Label(controller_->GetHeader());
91 header->SetFont(header->font().DeriveFont(kHeadingFontSizeDelta, 91 header->SetFont(header->font().DeriveFont(kHeadingFontSizeDelta,
92 gfx::Font::BOLD)); 92 gfx::Font::BOLD));
93 header->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 93 header->SetHorizontalAlignment(gfx::ALIGN_LEFT);
94 layout->StartRow(0, column_set_id); 94 layout->StartRow(0, column_set_id);
95 layout->AddView(header); 95 layout->AddView(header);
96 } 96 }
97 97
98 // Message text. 98 // Message text.
99 views::Label* subtext = new views::Label(controller_->GetSubtext()); 99 views::Label* subtext = new views::Label(controller_->GetSubtext());
100 subtext->SetMultiLine(true); 100 subtext->SetMultiLine(true);
101 subtext->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 101 subtext->SetHorizontalAlignment(gfx::ALIGN_LEFT);
102 layout->StartRowWithPadding(0, column_set_id, 102 layout->StartRowWithPadding(0, column_set_id,
103 0, views::kRelatedControlVerticalSpacing); 103 0, views::kRelatedControlVerticalSpacing);
104 layout->AddView(subtext); 104 layout->AddView(subtext);
105 105
106 // Checkboxes. 106 // Checkboxes.
107 checkbox_container_ = new views::View(); 107 checkbox_container_ = new views::View();
108 checkbox_container_->SetLayoutManager( 108 checkbox_container_->SetLayoutManager(
109 new views::BoxLayout(views::BoxLayout::kVertical, 109 new views::BoxLayout(views::BoxLayout::kVertical,
110 0, 0, 110 0, 0,
111 views::kRelatedControlSmallVerticalSpacing)); 111 views::kRelatedControlSmallVerticalSpacing));
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // MediaGalleriesDialogViewsController ----------------------------------------- 238 // MediaGalleriesDialogViewsController -----------------------------------------
239 239
240 // static 240 // static
241 MediaGalleriesDialog* MediaGalleriesDialog::Create( 241 MediaGalleriesDialog* MediaGalleriesDialog::Create(
242 MediaGalleriesDialogController* controller) { 242 MediaGalleriesDialogController* controller) {
243 return new MediaGalleriesDialogViews(controller); 243 return new MediaGalleriesDialogViews(controller);
244 } 244 }
245 245
246 } // namespace chrome 246 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_installed_bubble.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698