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

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

Issue 12096027: Adds an ash global shortcut key for message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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 "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/tray/tray_background_view.h" 9 #include "ash/system/tray/tray_background_view.h"
10 #include "ash/system/tray/tray_views.h" 10 #include "ash/system/tray/tray_views.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Returns true if the message center bubble is visible. 70 // Returns true if the message center bubble is visible.
71 bool IsMessageCenterBubbleVisible() const; 71 bool IsMessageCenterBubbleVisible() const;
72 72
73 // Returns true if the mouse is inside the notification bubble. 73 // Returns true if the mouse is inside the notification bubble.
74 bool IsMouseInNotificationBubble() const; 74 bool IsMouseInNotificationBubble() const;
75 75
76 message_center::MessageCenter* message_center() { 76 message_center::MessageCenter* message_center() {
77 return message_center_; 77 return message_center_;
78 } 78 }
79 79
80 // Shows or hides the message center bubble.
81 void ToggleMessageCenterBubble();
82
80 // Overridden from TrayBackgroundView. 83 // Overridden from TrayBackgroundView.
81 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE; 84 virtual void SetShelfAlignment(ShelfAlignment alignment) OVERRIDE;
82 virtual void AnchorUpdated() OVERRIDE; 85 virtual void AnchorUpdated() OVERRIDE;
83 virtual string16 GetAccessibleNameForTray() OVERRIDE; 86 virtual string16 GetAccessibleNameForTray() OVERRIDE;
84 virtual void HideBubbleWithView( 87 virtual void HideBubbleWithView(
85 const views::TrayBubbleView* bubble_view) OVERRIDE; 88 const views::TrayBubbleView* bubble_view) OVERRIDE;
86 virtual bool ClickedOutsideBubble() OVERRIDE; 89 virtual bool ClickedOutsideBubble() OVERRIDE;
87 90
88 // Overridden from internal::ActionableView. 91 // Overridden from internal::ActionableView.
89 virtual bool PerformAction(const ui::Event& event) OVERRIDE; 92 virtual bool PerformAction(const ui::Event& event) OVERRIDE;
(...skipping 18 matching lines...) Expand all
108 // Overridden from WidgetObserver. 111 // Overridden from WidgetObserver.
109 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; 112 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
110 113
111 private: 114 private:
112 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications); 115 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications);
113 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotificationPopupBubble); 116 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotificationPopupBubble);
114 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, 117 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest,
115 ManyMessageCenterNotifications); 118 ManyMessageCenterNotifications);
116 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, ManyPopupNotifications); 119 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, ManyPopupNotifications);
117 120
118 // Shows or hides the message center bubble.
119 void ToggleMessageCenterBubble();
120
121 // Shows or updates the message center bubble and hides the popup bubble. 121 // Shows or updates the message center bubble and hides the popup bubble.
122 void ShowMessageCenterBubble(); 122 void ShowMessageCenterBubble();
123 123
124 // Hides the message center bubble if visible. 124 // Hides the message center bubble if visible.
125 void HideMessageCenterBubble(); 125 void HideMessageCenterBubble();
126 126
127 // Shows or updates the popup notification bubble if appropriate. 127 // Shows or updates the popup notification bubble if appropriate.
128 void ShowPopupBubble(); 128 void ShowPopupBubble();
129 129
130 // Hides the notification bubble if visible. 130 // Hides the notification bubble if visible.
(...skipping 30 matching lines...) Expand all
161 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_; 161 scoped_ptr<message_center::QuietModeBubble> quiet_mode_bubble_;
162 views::ImageButton* button_; 162 views::ImageButton* button_;
163 bool show_message_center_on_unlock_; 163 bool show_message_center_on_unlock_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 165 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
166 }; 166 };
167 167
168 } // namespace ash 168 } // namespace ash
169 169
170 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 170 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW
« ash/accelerators/accelerator_table.cc ('K') | « ash/accelerators/accelerator_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698