| Index: chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
|
| diff --git a/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h b/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
|
| index 51750459226b184f15737d29a43dc2a2e7156f25..e46bfe267029398c2ced61e18d858d10ea89d11b 100644
|
| --- a/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
|
| +++ b/chrome/browser/ui/views/toolbar/toolbar_actions_bar_bubble_views.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/macros.h"
|
| #include "ui/views/bubble/bubble_delegate.h"
|
| #include "ui/views/controls/button/button.h"
|
| +#include "ui/views/controls/link_listener.h"
|
|
|
| class Profile;
|
| class ToolbarActionsBarBubbleDelegate;
|
| @@ -18,12 +19,14 @@ class ToolbarActionsBarBubbleViewsUnitTest;
|
| namespace views {
|
| class Label;
|
| class LabelButton;
|
| +class Link;
|
| }
|
|
|
| // TODO(devlin): It might be best for this to combine with
|
| // ExtensionMessageBubbleView, similar to what we do on Mac.
|
| class ToolbarActionsBarBubbleViews : public views::BubbleDelegateView,
|
| - public views::ButtonListener {
|
| + public views::ButtonListener,
|
| + public views::LinkListener {
|
| public:
|
| ToolbarActionsBarBubbleViews(
|
| views::View* anchor_view,
|
| @@ -34,8 +37,10 @@ class ToolbarActionsBarBubbleViews : public views::BubbleDelegateView,
|
|
|
| const views::Label* heading_label() const { return heading_label_; }
|
| const views::Label* content_label() const { return content_label_; }
|
| + const views::Label* item_list() const { return item_list_; }
|
| const views::LabelButton* action_button() const { return action_button_; }
|
| const views::LabelButton* dismiss_button() const { return dismiss_button_; }
|
| + const views::Link* learn_more_button() const { return learn_more_button_; }
|
|
|
| private:
|
| // views::BubbleDelegateView:
|
| @@ -45,13 +50,18 @@ class ToolbarActionsBarBubbleViews : public views::BubbleDelegateView,
|
| // views::ButtonListener:
|
| void ButtonPressed(views::Button* sender, const ui::Event& event) override;
|
|
|
| + // views::LinkListener:
|
| + void LinkClicked(views::Link* source, int event_flags) override;
|
| +
|
| views::View* anchor_view_;
|
|
|
| std::unique_ptr<ToolbarActionsBarBubbleDelegate> delegate_;
|
|
|
| views::Label* heading_label_;
|
| views::Label* content_label_;
|
| + views::Label* item_list_;
|
|
|
| + views::Link* learn_more_button_;
|
| views::LabelButton* dismiss_button_;
|
| views::LabelButton* action_button_;
|
|
|
|
|