| Index: ash/common/system/tray/actionable_view.cc
|
| diff --git a/ash/common/system/tray/actionable_view.cc b/ash/common/system/tray/actionable_view.cc
|
| index 0bdbabef30c1bd109c52a3cf878fec1a5212cd83..57dd1a99a900fea1ccc710d438c194ccfc0182ec 100644
|
| --- a/ash/common/system/tray/actionable_view.cc
|
| +++ b/ash/common/system/tray/actionable_view.cc
|
| @@ -5,6 +5,8 @@
|
| #include "ash/common/system/tray/actionable_view.h"
|
|
|
| #include "ash/common/ash_constants.h"
|
| +#include "ash/common/system/tray/system_tray.h"
|
| +#include "ash/common/system/tray/system_tray_item.h"
|
| #include "ui/accessibility/ax_view_state.h"
|
| #include "ui/gfx/canvas.h"
|
|
|
| @@ -13,7 +15,8 @@ namespace ash {
|
| // static
|
| const char ActionableView::kViewClassName[] = "tray/ActionableView";
|
|
|
| -ActionableView::ActionableView() : has_capture_(false) {
|
| +ActionableView::ActionableView(SystemTrayItem* owner)
|
| + : owner_(owner), has_capture_(false) {
|
| SetFocusBehavior(FocusBehavior::ALWAYS);
|
| }
|
|
|
| @@ -88,4 +91,9 @@ void ActionableView::OnGestureEvent(ui::GestureEvent* event) {
|
| event->SetHandled();
|
| }
|
|
|
| +void ActionableView::CloseSystemBubble() {
|
| + DCHECK(owner_);
|
| + owner_->system_tray()->CloseSystemBubble();
|
| +}
|
| +
|
| } // namespace ash
|
|
|