Chromium Code Reviews| 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 bef1bf8e16421fc34d10f8e6e6716cc40a99ec3b..f3e031e6b43a6eac4f1ae2cd7ec73679daae257a 100644 |
| --- a/ash/common/system/tray/actionable_view.h |
| +++ b/ash/common/system/tray/actionable_view.h |
| @@ -10,6 +10,7 @@ |
| #include "ui/views/view.h" |
| namespace ash { |
| +class SystemTrayItem; |
| // A focusable view that performs an action when user clicks on it, or presses |
| // enter or space when focused. Note that the action is triggered on mouse-up, |
| @@ -21,14 +22,18 @@ class ASH_EXPORT ActionableView : public views::View { |
| public: |
| static const char kViewClassName[]; |
| - ActionableView(); |
| + explicit ActionableView(SystemTrayItem* owner); |
|
James Cook
2016/09/22 21:17:16
nit: document that |owner| can be null, and what t
oshima
2016/09/23 09:37:19
Done.
|
| ~ActionableView() override; |
| void SetAccessibleName(const base::string16& name); |
| const base::string16& accessible_name() const { return accessible_name_; } |
| + void CloseSystemBubble(); |
|
James Cook
2016/09/22 21:17:16
nit: document
oshima
2016/09/23 09:37:19
Done.
|
| + |
| protected: |
| + SystemTrayItem* owner() { return owner_; } |
| + |
| void OnPaintFocus(gfx::Canvas* canvas); |
| // Returns the bounds to paint the focus rectangle in. |
| @@ -54,6 +59,8 @@ class ASH_EXPORT ActionableView : public views::View { |
| void OnGestureEvent(ui::GestureEvent* event) override; |
| private: |
| + SystemTrayItem* owner_; |
| + |
| base::string16 accessible_name_; |
| bool has_capture_; |