| Index: ash/common/system/tray/actionable_view.h
|
| diff --git a/ash/common/system/tray/actionable_view.h b/ash/common/system/tray/actionable_view.h
|
| index 1dd60b4b41b68d3e63f6cf764c9ad286868baf64..8d653c4379563587ff1e11d911caa5a96e385f49 100644
|
| --- a/ash/common/system/tray/actionable_view.h
|
| +++ b/ash/common/system/tray/actionable_view.h
|
| @@ -80,6 +80,22 @@ class ASH_EXPORT ActionableView : public views::ButtonListener,
|
| DISALLOW_COPY_AND_ASSIGN(ActionableView);
|
| };
|
|
|
| +// An ActionableView that can be used with a ButtonListener instead of having to
|
| +// extend ActionableView and override PerformAction().
|
| +class ASH_EXPORT ButtonListenerActionableView : public ActionableView {
|
| + public:
|
| + ButtonListenerActionableView(SystemTrayItem* owner,
|
| + views::ButtonListener* listener);
|
| +
|
| + // ActionableView:
|
| + bool PerformAction(const ui::Event& event) override;
|
| +
|
| + private:
|
| + views::ButtonListener* listener_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ButtonListenerActionableView);
|
| +};
|
| +
|
| } // namespace ash
|
|
|
| #endif // ASH_COMMON_SYSTEM_TRAY_ACTIONABLE_VIEW_H_
|
|
|