Chromium Code Reviews| Index: ash/system/tray/hover_highlight_view.h |
| diff --git a/ash/system/tray/hover_highlight_view.h b/ash/system/tray/hover_highlight_view.h |
| index 6b9d1a22a42dada37b43bc1e360a19c348de0b48..ae8e2f4e28f094b15936907c960b1aa89b26a920 100644 |
| --- a/ash/system/tray/hover_highlight_view.h |
| +++ b/ash/system/tray/hover_highlight_view.h |
| @@ -26,6 +26,10 @@ class HoverHighlightView : public ActionableView { |
| explicit HoverHighlightView(ViewClickListener* listener); |
| ~HoverHighlightView() override; |
| + // views::View |
| + bool GetTooltipText(const gfx::Point& p, |
| + base::string16* tooltip) const override; |
| + |
| // Convenience function for adding an icon and a label. This also sets the |
| // accessible name. |
| void AddIconAndLabel(const gfx::ImageSkia& image, |
| @@ -66,6 +70,8 @@ class HoverHighlightView : public ActionableView { |
| bool hover() const { return hover_; } |
| + void SetTooltipText(const base::string16& tooltip) { tooltip_ = tooltip; } |
|
stevenjb
2015/11/23 20:42:03
set_tooltup()
(Trivial setters use the naming con
|
| + |
| protected: |
| // Overridden from views::View. |
| void GetAccessibleState(ui::AXViewState* state) override; |
| @@ -103,6 +109,7 @@ class HoverHighlightView : public ActionableView { |
| bool expandable_; |
| bool checkable_; |
| bool checked_; |
| + base::string16 tooltip_; |
| DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); |
| }; |