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

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

Issue 11648024: Clean-up positioning and spacing in chrome/browser/ui/views/location_bar/location_bar_view.cc (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removed executable bit. Created 7 years, 12 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/ev_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/ev_bubble_view.cc b/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
index 5d651be560790a3debea00dd766281148e312982..a8b69ee34400efc3665a09dbb7df66748b4452a9 100644
--- a/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
@@ -16,6 +16,16 @@ EVBubbleView::EVBubbleView(const int background_images[],
EVBubbleView::~EVBubbleView() {
}
+gfx::Size EVBubbleView::GetMinimumSize() {
+
+ // Set the minimum size for elided EV bubbles to 150 px.
+ static const int kMinBubbleWidth = 150;
+
+ gfx::Size minimum(GetPreferredSize());
+ minimum.set_width(std::min(kMinBubbleWidth, minimum.width()));
+ return minimum;
+}
+
bool EVBubbleView::OnMousePressed(const ui::MouseEvent& event) {
// We want to show the dialog on mouse release; that is the standard behavior
// for buttons.
« no previous file with comments | « chrome/browser/ui/views/location_bar/ev_bubble_view.h ('k') | chrome/browser/ui/views/location_bar/location_bar_layout.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698