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

Side by Side Diff: chrome/browser/ui/views/speech_recognition_bubble_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/speech/speech_recognition_bubble.h" 5 #include "chrome/browser/speech/speech_recognition_bubble.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 void SpeechRecognitionBubbleView::Init() { 137 void SpeechRecognitionBubbleView::Init() {
138 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 138 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
139 const gfx::Font& font = rb.GetFont(ResourceBundle::MediumFont); 139 const gfx::Font& font = rb.GetFont(ResourceBundle::MediumFont);
140 140
141 heading_ = new views::Label( 141 heading_ = new views::Label(
142 l10n_util::GetStringUTF16(IDS_SPEECH_INPUT_BUBBLE_HEADING)); 142 l10n_util::GetStringUTF16(IDS_SPEECH_INPUT_BUBBLE_HEADING));
143 heading_->set_border(views::Border::CreateEmptyBorder( 143 heading_->set_border(views::Border::CreateEmptyBorder(
144 kBubbleHeadingVertMargin, 0, kBubbleHeadingVertMargin, 0)); 144 kBubbleHeadingVertMargin, 0, kBubbleHeadingVertMargin, 0));
145 heading_->SetFont(font); 145 heading_->SetFont(font);
146 heading_->SetHorizontalAlignment(views::Label::ALIGN_CENTER); 146 heading_->SetHorizontalAlignment(gfx::ALIGN_CENTER);
147 heading_->SetText( 147 heading_->SetText(
148 l10n_util::GetStringUTF16(IDS_SPEECH_INPUT_BUBBLE_HEADING)); 148 l10n_util::GetStringUTF16(IDS_SPEECH_INPUT_BUBBLE_HEADING));
149 AddChildView(heading_); 149 AddChildView(heading_);
150 150
151 message_ = new views::Label(); 151 message_ = new views::Label();
152 message_->SetFont(font); 152 message_->SetFont(font);
153 message_->SetHorizontalAlignment(views::Label::ALIGN_CENTER);
154 message_->SetMultiLine(true); 153 message_->SetMultiLine(true);
155 AddChildView(message_); 154 AddChildView(message_);
156 155
157 icon_ = new views::ImageView(); 156 icon_ = new views::ImageView();
158 icon_->SetHorizontalAlignment(views::ImageView::CENTER); 157 icon_->SetHorizontalAlignment(views::ImageView::CENTER);
159 AddChildView(icon_); 158 AddChildView(icon_);
160 159
161 cancel_ = new views::NativeTextButton( 160 cancel_ = new views::NativeTextButton(
162 this, l10n_util::GetStringUTF16(IDS_CANCEL)); 161 this, l10n_util::GetStringUTF16(IDS_CANCEL));
163 AddChildView(cancel_); 162 AddChildView(cancel_);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } 386 }
388 387
389 } // namespace 388 } // namespace
390 389
391 SpeechRecognitionBubble* SpeechRecognitionBubble::CreateNativeBubble( 390 SpeechRecognitionBubble* SpeechRecognitionBubble::CreateNativeBubble(
392 WebContents* web_contents, 391 WebContents* web_contents,
393 SpeechRecognitionBubble::Delegate* delegate, 392 SpeechRecognitionBubble::Delegate* delegate,
394 const gfx::Rect& element_rect) { 393 const gfx::Rect& element_rect) {
395 return new SpeechRecognitionBubbleImpl(web_contents, delegate, element_rect); 394 return new SpeechRecognitionBubbleImpl(web_contents, delegate, element_rect);
396 } 395 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_frame_view.cc ('k') | chrome/browser/ui/views/ssl_client_certificate_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698