| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 47   void SetLabel(const base::string16& label); | 47   void SetLabel(const base::string16& label); | 
| 48   void SetImage(const gfx::ImageSkia& image); | 48   void SetImage(const gfx::ImageSkia& image); | 
| 49   void set_is_extension_icon(bool is_extension_icon) { | 49   void set_is_extension_icon(bool is_extension_icon) { | 
| 50     is_extension_icon_ = is_extension_icon; | 50     is_extension_icon_ = is_extension_icon; | 
| 51   } | 51   } | 
| 52 | 52 | 
| 53   const views::ImageView* GetImageView() const { return image_; } | 53   const views::ImageView* GetImageView() const { return image_; } | 
| 54   views::ImageView* GetImageView() { return image_; } | 54   views::ImageView* GetImageView() { return image_; } | 
| 55 | 55 | 
| 56  protected: | 56  protected: | 
|  | 57   static constexpr int kOpenTimeMS = 150; | 
|  | 58 | 
| 57   views::ImageView* image() { return image_; } | 59   views::ImageView* image() { return image_; } | 
| 58   views::Label* label() { return label_; } | 60   views::Label* label() { return label_; } | 
| 59   const views::Label* label() const { return label_; } | 61   const views::Label* label() const { return label_; } | 
| 60 | 62 | 
| 61   // Gets the color for displaying text. | 63   // Gets the color for displaying text. | 
| 62   virtual SkColor GetTextColor() const = 0; | 64   virtual SkColor GetTextColor() const = 0; | 
| 63 | 65 | 
| 64   // Gets the color for the border (a more transparent version of which is used | 66   // Gets the color for the border (a more transparent version of which is used | 
| 65   // for the background). | 67   // for the background). | 
| 66   virtual SkColor GetBorderColor() const = 0; | 68   virtual SkColor GetBorderColor() const = 0; | 
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 138   // the native theme (so it responds to native theme updates). TODO(estade): | 140   // the native theme (so it responds to native theme updates). TODO(estade): | 
| 139   // remove when MD is default. | 141   // remove when MD is default. | 
| 140   SkColor parent_background_color_; | 142   SkColor parent_background_color_; | 
| 141 | 143 | 
| 142   bool should_show_background_; | 144   bool should_show_background_; | 
| 143 | 145 | 
| 144   DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); | 146   DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); | 
| 145 }; | 147 }; | 
| 146 | 148 | 
| 147 #endif  // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ | 149 #endif  // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ | 
| OLD | NEW | 
|---|