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

Unified Diff: chrome/browser/ui/views/validation_message_bubble_delegate.cc

Issue 327273005: Revert of Use labels to display views tab titles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_unittest.cc ('k') | ui/gfx/text_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/validation_message_bubble_delegate.cc
diff --git a/chrome/browser/ui/views/validation_message_bubble_delegate.cc b/chrome/browser/ui/views/validation_message_bubble_delegate.cc
index 7c11a10a5cc262f8fdad85a62bb5d9bef093b387..107a873f268f3401969a5876c9474afe4fe8f8cb 100644
--- a/chrome/browser/ui/views/validation_message_bubble_delegate.cc
+++ b/chrome/browser/ui/views/validation_message_bubble_delegate.cc
@@ -38,7 +38,7 @@
views::Label* label = new views::Label(
main_text, bundle.GetFontList(ui::ResourceBundle::MediumFont));
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- label->set_directionality_mode(gfx::DIRECTIONALITY_FROM_TEXT);
+ label->set_directionality_mode(views::Label::AUTO_DETECT_DIRECTIONALITY);
int text_start_x = kPadding + size.width() + kIconTextMargin;
int min_available = kWindowMinWidth - text_start_x - kPadding;
int max_available = kWindowMaxWidth - text_start_x - kPadding;
@@ -50,7 +50,8 @@
if (!sub_text.empty()) {
sub_label = new views::Label(sub_text);
sub_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- sub_label->set_directionality_mode(gfx::DIRECTIONALITY_FROM_TEXT);
+ sub_label->set_directionality_mode(
+ views::Label::AUTO_DETECT_DIRECTIONALITY);
label_width = std::max(label_width, sub_label->GetPreferredSize().width());
sub_label->SetMultiLine(true);
AddChildView(sub_label);
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_unittest.cc ('k') | ui/gfx/text_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698