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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_layout.h

Issue 2713253002: Adjust ellision strategy for omnibox search chip. (Closed)
Patch Set: Created 3 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
Index: chrome/browser/ui/views/location_bar/location_bar_layout.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_layout.h b/chrome/browser/ui/views/location_bar/location_bar_layout.h
index c26a7ef8d5c7562f680206052575afea0550cd1b..3e94e30775c366393308e0047688a62d7347297f 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_layout.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_layout.h
@@ -68,9 +68,13 @@ class LocationBarLayout {
// corresponding to the entire space available in the location bar. This pass
// will update it as decorations are laid out. |available_width| measures the
// empty space within the location bar, taking the decorations and text into
- // account. |decorations| must always be ordered from the edge of the location
- // bar towards the middle.
- void LayoutPass3(gfx::Rect* bounds, int* available_width);
+ // account. When |allow_collapse| is true, decorations may be completely
+ // collapsed (invisible) when there's not enough available width. When
+ // |allow_collapse| is false, decorations won't be smaller than their minimum
+ // width, even if there's not enough room in |available_width|.
+ void LayoutPass3(gfx::Rect* bounds,
+ int* available_width,
+ bool allow_collapse);
private:
// LEFT_EDGE means decorations are added from left to right and stacked on

Powered by Google App Engine
This is Rietveld 408576698