Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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; | |
|
Evan Stade
2016/06/15 23:08:41
nit: Md
Peter Kasting
2016/06/16 04:39:09
Done.
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |