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

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

Issue 2642893002: Adjust positioning of location bar icons. (Closed)
Patch Set: nits Created 3 years, 11 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/icon_label_bubble_view.h
diff --git a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
index 0928b90d8a247af9b83d4d45947453df5e6ac340..7b5d37e0dfeb9b652ca2ef4b191108c954cc60d9 100644
--- a/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
+++ b/chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
@@ -49,6 +49,10 @@ class IconLabelBubbleView : public views::InkDropHostView {
views::Label* label() { return label_; }
const views::Label* label() const { return label_; }
+ void set_next_element_interior_padding(int padding) {
+ next_element_interior_padding_ = padding;
+ }
+
// Gets the color for displaying text.
virtual SkColor GetTextColor() const = 0;
@@ -108,6 +112,11 @@ class IconLabelBubbleView : public views::InkDropHostView {
views::ImageView* image_;
views::Label* label_;
+ // The padding of the element that will be displayed after |this|. This value
+ // is relevant for calculating the amount of space to reserve after the
+ // separator.
+ int next_element_interior_padding_ = 0;
+
DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView);
};

Powered by Google App Engine
This is Rietveld 408576698