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

Unified Diff: chrome/browser/ui/views/location_bar/origin_chip_view.cc

Issue 312233003: Add fade eliding for Views Labels; related cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refine alignment check; minor additional cleanup. 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
Index: chrome/browser/ui/views/location_bar/origin_chip_view.cc
diff --git a/chrome/browser/ui/views/location_bar/origin_chip_view.cc b/chrome/browser/ui/views/location_bar/origin_chip_view.cc
index e8b4d668acec73d5b0628a66b6dea4162f744dcc..1e41a8d25b0b4a2db75397d5261d63c2a45d4ca8 100644
--- a/chrome/browser/ui/views/location_bar/origin_chip_view.cc
+++ b/chrome/browser/ui/views/location_bar/origin_chip_view.cc
@@ -164,12 +164,12 @@ OriginChipView::OriginChipView(LocationBarView* location_bar_view,
ev_label_ = new views::Label(base::string16(), GetFontList());
ev_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- ev_label_->SetElideBehavior(views::Label::NO_ELIDE);
+ ev_label_->SetElideBehavior(gfx::TRUNCATE);
AddChildView(ev_label_);
host_label_ = new views::Label(base::string16(), GetFontList());
host_label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- host_label_->SetElideBehavior(views::Label::NO_ELIDE);
+ host_label_->SetElideBehavior(gfx::TRUNCATE);
AddChildView(host_label_);
fade_in_animation_.SetTweenType(gfx::Tween::LINEAR_OUT_SLOW_IN);
« no previous file with comments | « chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698