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

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

Issue 19027005: Hide notifications popups when entering fullscreen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix remaining testing issues Created 7 years, 4 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
« no previous file with comments | « no previous file | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/user/login_status.h" 10 #include "ash/system/user/login_status.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual void ButtonPressed(views::Button* sender, 100 virtual void ButtonPressed(views::Button* sender,
101 const ui::Event& event) OVERRIDE; 101 const ui::Event& event) OVERRIDE;
102 102
103 // Overridden from MessageCenterTrayDelegate. 103 // Overridden from MessageCenterTrayDelegate.
104 virtual void OnMessageCenterTrayChanged() OVERRIDE; 104 virtual void OnMessageCenterTrayChanged() OVERRIDE;
105 virtual bool ShowMessageCenter() OVERRIDE; 105 virtual bool ShowMessageCenter() OVERRIDE;
106 virtual void HideMessageCenter() OVERRIDE; 106 virtual void HideMessageCenter() OVERRIDE;
107 virtual bool ShowPopups() OVERRIDE; 107 virtual bool ShowPopups() OVERRIDE;
108 virtual void HidePopups() OVERRIDE; 108 virtual void HidePopups() OVERRIDE;
109 virtual bool ShowNotifierSettings() OVERRIDE; 109 virtual bool ShowNotifierSettings() OVERRIDE;
110 virtual message_center::MessageCenterTray* GetMessageCenterTray() OVERRIDE;
110 111
111 // Overridden from TrayBackgroundView. 112 // Overridden from TrayBackgroundView.
112 virtual bool IsPressed() OVERRIDE; 113 virtual bool IsPressed() OVERRIDE;
113 114
114 message_center::MessageCenter* message_center(); 115 message_center::MessageCenter* message_center();
115 116
116 private: 117 private:
117 friend class WebNotificationTrayTest; 118 friend class WebNotificationTrayTest;
118 119
119 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications); 120 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 // Observes the work area for |popup_collection_| and notifies to it. 169 // Observes the work area for |popup_collection_| and notifies to it.
169 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; 170 scoped_ptr<internal::WorkAreaObserver> work_area_observer_;
170 171
171 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 172 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
172 }; 173 };
173 174
174 } // namespace ash 175 } // namespace ash
175 176
176 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 177 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698