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

Side by Side Diff: chrome/browser/ui/views/location_bar/icon_label_bubble_view.h

Issue 2075443002: Remove IconLabelView layout constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment, fix compile 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class ImageView; 24 class ImageView;
25 class Label; 25 class Label;
26 class Painter; 26 class Painter;
27 } 27 }
28 28
29 // View used to draw a bubble, containing an icon and a label. We use this as a 29 // View used to draw a bubble, containing an icon and a label. We use this as a
30 // base for the classes that handle the location icon (including the EV bubble), 30 // base for the classes that handle the location icon (including the EV bubble),
31 // tab-to-search UI, and content settings. 31 // tab-to-search UI, and content settings.
32 class IconLabelBubbleView : public views::InkDropHostView { 32 class IconLabelBubbleView : public views::InkDropHostView {
33 public: 33 public:
34 static constexpr int kTrailingPaddingPreMd = 2;
35
34 IconLabelBubbleView(int contained_image, 36 IconLabelBubbleView(int contained_image,
35 const gfx::FontList& font_list, 37 const gfx::FontList& font_list,
36 SkColor parent_background_color, 38 SkColor parent_background_color,
37 bool elide_in_middle); 39 bool elide_in_middle);
38 ~IconLabelBubbleView() override; 40 ~IconLabelBubbleView() override;
39 41
40 // Sets a background that paints |background_images| in a scalable grid. 42 // Sets a background that paints |background_images| in a scalable grid.
41 // Subclasses must call this during construction. 43 // Subclasses must call this during construction.
42 void SetBackgroundImageGrid(const int background_images[]); 44 void SetBackgroundImageGrid(const int background_images[]);
43 void UnsetBackgroundImageGrid(); 45 void UnsetBackgroundImageGrid();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // the native theme (so it responds to native theme updates). TODO(estade): 132 // the native theme (so it responds to native theme updates). TODO(estade):
131 // remove when MD is default. 133 // remove when MD is default.
132 SkColor parent_background_color_; 134 SkColor parent_background_color_;
133 135
134 bool should_show_background_; 136 bool should_show_background_;
135 137
136 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); 138 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView);
137 }; 139 };
138 140
139 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ 141 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/layout_constants.cc ('k') | chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698