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

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

Issue 271013002: Compute minimum widths for the toolbar components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index 0a034f35dcc2bcf91eb1a6006593bb75bd17249c..ce4b97f9aa5f91a985f7457fe3984531d04afe1d 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -292,6 +292,10 @@ class LocationBarView : public LocationBar,
typedef std::vector<ExtensionAction*> PageActions;
typedef std::vector<PageActionWithBadgeView*> PageActionViews;
+ // Helper for GetMinimumWidth(). Calculates the incremental minimum width
+ // |view| should add to the trailing width after the omnibox.
+ static int IncrementalMinimumWidth(views::View* view);
+
// Returns the thickness of any visible left and right edge, in pixels.
int GetHorizontalEdgeThickness() const;
@@ -337,6 +341,9 @@ class LocationBarView : public LocationBar,
// Returns true if the suggest text is valid.
bool HasValidSuggestText() const;
+ bool ShouldShowKeywordBubble() const;
+ bool ShouldShowEVBubble() const;
+
// Origin chip animation control methods.
void OnShowURLAnimationEnded();
void OnHideURLAnimationEnded();

Powered by Google App Engine
This is Rietveld 408576698