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

Unified Diff: ui/views/bubble/tray_bubble_view.cc

Issue 2961313003: Touch gestures for System Tray/ IME/ Stylus/ Notifications (Closed)
Patch Set: Fixed msw's comments. Created 3 years, 5 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
« ui/views/bubble/tray_bubble_view.h ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9639eb97157c27b76056af7ad5d5e380a18e1ead 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;
+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) {}
+
+bool TrayBubbleView::Delegate::ProcessGestureEventForBubble(
+ ui::GestureEvent* event) {
+ return false;
+}
+
TrayBubbleView::InitParams::InitParams() = default;
TrayBubbleView::InitParams::InitParams(const InitParams& other) = default;
@@ -393,6 +421,11 @@ void TrayBubbleView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
}
}
+void TrayBubbleView::OnGestureEvent(ui::GestureEvent* event) {
+ if (!delegate_ || !delegate_->ProcessGestureEventForBubble(event))
+ 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
« ui/views/bubble/tray_bubble_view.h ('K') | « ui/views/bubble/tray_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698