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

Side by Side Diff: ash/system/web_notification/web_notification_tray.h

Issue 2961313003: Touch gestures for System Tray/ IME/ Stylus/ Notifications (Closed)
Patch Set: Fixed UT. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Called when the login status is changed. 77 // Called when the login status is changed.
78 void UpdateAfterLoginStatusChange(LoginStatus login_status); 78 void UpdateAfterLoginStatusChange(LoginStatus login_status);
79 79
80 // Overridden from TrayBackgroundView. 80 // Overridden from TrayBackgroundView.
81 void UpdateAfterShelfAlignmentChange() override; 81 void UpdateAfterShelfAlignmentChange() override;
82 void AnchorUpdated() override; 82 void AnchorUpdated() override;
83 base::string16 GetAccessibleNameForTray() override; 83 base::string16 GetAccessibleNameForTray() override;
84 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; 84 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
85 void ClickedOutsideBubble() override; 85 void ClickedOutsideBubble() override;
86
87 // Overridden from ActionableView.
88 bool PerformAction(const ui::Event& event) override; 86 bool PerformAction(const ui::Event& event) override;
87 void CloseBubble() override;
88 void ShowBubble() override;
89 views::TrayBubbleView* GetBubbleView() override;
90 void OnGestureEvent(ui::GestureEvent* event) override;
89 91
90 // Overridden from views::TrayBubbleView::Delegate. 92 // Overridden from views::TrayBubbleView::Delegate.
91 void BubbleViewDestroyed() override; 93 void BubbleViewDestroyed() override;
92 void OnMouseEnteredView() override; 94 void OnMouseEnteredView() override;
93 void OnMouseExitedView() override; 95 void OnMouseExitedView() override;
94 void RegisterAccelerators(const std::vector<ui::Accelerator>& accelerators, 96 void RegisterAccelerators(const std::vector<ui::Accelerator>& accelerators,
95 views::TrayBubbleView* tray_bubble_view) override; 97 views::TrayBubbleView* tray_bubble_view) override;
96 void UnregisterAllAccelerators( 98 void UnregisterAllAccelerators(
97 views::TrayBubbleView* tray_bubble_view) override; 99 views::TrayBubbleView* tray_bubble_view) override;
98 base::string16 GetAccessibleNameForBubble() override; 100 base::string16 GetAccessibleNameForBubble() override;
99 bool ShouldEnableExtraKeyboardAccessibility() override; 101 bool ShouldEnableExtraKeyboardAccessibility() override;
100 void HideBubble(const views::TrayBubbleView* bubble_view) override; 102 void HideBubble(const views::TrayBubbleView* bubble_view) override;
103 bool ProcessGestureEventForBubble(ui::GestureEvent* event) override;
101 104
102 // Overridden from MessageCenterTrayDelegate. 105 // Overridden from MessageCenterTrayDelegate.
103 void OnMessageCenterTrayChanged() override; 106 void OnMessageCenterTrayChanged() override;
104 bool ShowMessageCenter() override; 107 bool ShowMessageCenter() override;
105 void HideMessageCenter() override; 108 void HideMessageCenter() override;
106 bool ShowPopups() override; 109 bool ShowPopups() override;
107 void HidePopups() override; 110 void HidePopups() override;
108 bool ShowNotifierSettings() override; 111 bool ShowNotifierSettings() override;
109 bool IsContextMenuEnabled() const override; 112 bool IsContextMenuEnabled() const override;
110 message_center::MessageCenterTray* GetMessageCenterTray() override; 113 message_center::MessageCenterTray* GetMessageCenterTray() override;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 bool should_block_shelf_auto_hide_; 183 bool should_block_shelf_auto_hide_;
181 184
182 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; 185 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_;
183 186
184 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 187 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
185 }; 188 };
186 189
187 } // namespace ash 190 } // namespace ash
188 191
189 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 192 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698