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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 is_extension_icon_ = is_extension_icon; | 48 is_extension_icon_ = is_extension_icon; |
49 } | 49 } |
50 | 50 |
51 const views::ImageView* GetImageView() const { return image_; } | 51 const views::ImageView* GetImageView() const { return image_; } |
52 views::ImageView* GetImageView() { return image_; } | 52 views::ImageView* GetImageView() { return image_; } |
53 | 53 |
54 protected: | 54 protected: |
55 views::ImageView* image() { return image_; } | 55 views::ImageView* image() { return image_; } |
56 const views::ImageView* image() const { return image_; } | 56 const views::ImageView* image() const { return image_; } |
57 views::Label* label() { return label_; } | 57 views::Label* label() { return label_; } |
58 const views::Label* label() const { return label_; } | |
59 | 58 |
60 // Gets the color for displaying text. | 59 // Gets the color for displaying text. |
61 virtual SkColor GetTextColor() const = 0; | 60 virtual SkColor GetTextColor() const = 0; |
62 | 61 |
63 // Gets the color for the border (a more transparent version of which is used | 62 // Gets the color for the border (a more transparent version of which is used |
64 // for the background). | 63 // for the background). |
65 virtual SkColor GetBorderColor() const = 0; | 64 virtual SkColor GetBorderColor() const = 0; |
66 | 65 |
67 // Returns true when the background should be rendered. | 66 // Returns true when the background should be rendered. |
68 virtual bool ShouldShowBackground() const; | 67 virtual bool ShouldShowBackground() const; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // the native theme (so it responds to native theme updates). TODO(estade): | 123 // the native theme (so it responds to native theme updates). TODO(estade): |
125 // remove when MD is default. | 124 // remove when MD is default. |
126 SkColor parent_background_color_; | 125 SkColor parent_background_color_; |
127 | 126 |
128 bool should_show_background_; | 127 bool should_show_background_; |
129 | 128 |
130 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); | 129 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); |
131 }; | 130 }; |
132 | 131 |
133 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ |
OLD | NEW |