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

Unified Diff: chrome/browser/ui/views/toolbar/site_chip_view.h

Issue 141333004: [SiteChip] Remove 50% width cap for site chip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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 | « no previous file | chrome/browser/ui/views/toolbar/site_chip_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar/site_chip_view.h
diff --git a/chrome/browser/ui/views/toolbar/site_chip_view.h b/chrome/browser/ui/views/toolbar/site_chip_view.h
index 3a6ae41cb9ba119a9983abcf13e10aadad0f7715..02e849861730316b873f222bfe70db3c0dc18b7f 100644
--- a/chrome/browser/ui/views/toolbar/site_chip_view.h
+++ b/chrome/browser/ui/views/toolbar/site_chip_view.h
@@ -56,6 +56,11 @@ class SiteChipView : public ToolbarButton,
return location_icon_view_;
}
+ // Elides the hostname shown to the indicated width, if needed. Returns the
+ // final width of the site chip. Note: this may be more than the target width,
+ // since the hostname will not be elided past the TLD+1.
+ int ElideDomainTarget(int target_max_width);
+
// ToolbarButton:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void Layout() OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/site_chip_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698