Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Unified Diff: ash/common/system/tray/actionable_view.cc

Issue 2330403002: Do not activate system tray bubble by default (Closed)
Patch Set: Do not activate system tray bubble by default Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/tray/actionable_view.h ('k') | ash/common/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ash/common/system/tray/actionable_view.h ('k') | ash/common/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698