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

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

Issue 2064323005: Change IconLabelBubbleView layout to specify padding beside the separator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_constants
Patch Set: Created 4 years, 6 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 d6ffdc572c79faf2fb8c11f043996fea39e6e1f9..12a51aa3a30658d070062366e1872d6c7485c1d9 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
@@ -112,9 +112,15 @@ class IconLabelBubbleView : public views::InkDropHostView {
// (or image, if the label is invisible) to the trailing edge of the view.
int GetOuterPadding(bool leading) const;
+ // Horizontal position of the image trailing edge (i.e. just after the image).
+ int GetImageTrailingEdge() const;
+
// Spacing between the image and the label.
int GetInternalSpacing() const;
+ // Additional width necessary after the label, when the view is at full width.
+ int GetPostLabelWidth() const;
+
// views::View:
const char* GetClassName() const override;
void OnPaint(gfx::Canvas* canvas) override;

Powered by Google App Engine
This is Rietveld 408576698