| Index: ui/views/bubble/tray_bubble_view.cc
|
| diff --git a/ui/views/bubble/tray_bubble_view.cc b/ui/views/bubble/tray_bubble_view.cc
|
| index 46eebae8b028a3e95ceb7d357b08bfebfb71b686..69bfd1d0614b541a75627427f34ef78d92956aff 100644
|
| --- a/ui/views/bubble/tray_bubble_view.cc
|
| +++ b/ui/views/bubble/tray_bubble_view.cc
|
| @@ -169,6 +169,34 @@ class BottomAlignedBoxLayout : public BoxLayout {
|
| using internal::TrayBubbleContentMask;
|
| using internal::BottomAlignedBoxLayout;
|
|
|
| +TrayBubbleView::Delegate::~Delegate() {}
|
| +
|
| +void TrayBubbleView::Delegate::BubbleViewDestroyed() {}
|
| +
|
| +void TrayBubbleView::Delegate::OnMouseEnteredView() {}
|
| +
|
| +void TrayBubbleView::Delegate::OnMouseExitedView() {}
|
| +
|
| +void TrayBubbleView::Delegate::RegisterAccelerators(
|
| + const std::vector<ui::Accelerator>& accelerators,
|
| + TrayBubbleView* tray_bubble_view) {}
|
| +
|
| +void TrayBubbleView::Delegate::UnregisterAllAccelerators(
|
| + TrayBubbleView* tray_bubble_view) {}
|
| +
|
| +base::string16 TrayBubbleView::Delegate::GetAccessibleNameForBubble() {
|
| + return base::string16();
|
| +}
|
| +
|
| +bool TrayBubbleView::Delegate::ShouldEnableExtraKeyboardAccessibility() {
|
| + return false;
|
| +}
|
| +
|
| +void TrayBubbleView::Delegate::HideBubble(const TrayBubbleView* bubble_view) {}
|
| +
|
| +void TrayBubbleView::Delegate::ProcessGestureEventForBubble(
|
| + ui::GestureEvent* event) {}
|
| +
|
| TrayBubbleView::InitParams::InitParams() = default;
|
|
|
| TrayBubbleView::InitParams::InitParams(const InitParams& other) = default;
|
| @@ -393,6 +421,14 @@ void TrayBubbleView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
|
| }
|
| }
|
|
|
| +void TrayBubbleView::OnGestureEvent(ui::GestureEvent* event) {
|
| + if (delegate_)
|
| + delegate_->ProcessGestureEventForBubble(event);
|
| +
|
| + if (!event->handled())
|
| + BubbleDialogDelegateView::OnGestureEvent(event);
|
| +}
|
| +
|
| void TrayBubbleView::MouseMovedOutOfHost() {
|
| // The mouse was accidentally over the bubble when it opened and the AutoClose
|
| // logic was not activated. Now that the user did move the mouse we tell the
|
|
|