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; |