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

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

Issue 1830343003: When animating a content setting bubble smaller, hide the background later. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cleanup
Patch Set: Resync Created 4 years, 9 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698