| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "ui/message_center/message_center_tray_delegate.h" | 12 #include "ui/message_center/message_center_tray_delegate.h" |
| 13 #include "ui/views/widget/widget_observer.h" | 13 #include "ui/views/widget/widget_observer.h" |
| 14 | 14 |
| 15 class StatusIcon; | |
| 16 | |
| 17 namespace message_center { | 15 namespace message_center { |
| 18 class DesktopPopupAlignmentDelegate; | 16 class DesktopPopupAlignmentDelegate; |
| 19 class MessageCenter; | 17 class MessageCenter; |
| 20 class MessageCenterTray; | 18 class MessageCenterTray; |
| 21 class MessagePopupCollection; | 19 class MessagePopupCollection; |
| 22 | 20 |
| 23 // A MessageCenterTrayDelegate implementation that exposes the MessageCenterTray | 21 // A MessageCenterTrayDelegate implementation that exposes the MessageCenterTray |
| 24 // via a system tray icon. The notification popups will be displayed in the | 22 // via a system tray icon. The notification popups will be displayed in the |
| 25 // corner of the screen and the message center will be displayed by the system | 23 // corner of the screen and the message center will be displayed by the system |
| 26 // tray icon on click. | 24 // tray icon on click. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 51 std::unique_ptr<MessagePopupCollection> popup_collection_; | 49 std::unique_ptr<MessagePopupCollection> popup_collection_; |
| 52 std::unique_ptr<DesktopPopupAlignmentDelegate> alignment_delegate_; | 50 std::unique_ptr<DesktopPopupAlignmentDelegate> alignment_delegate_; |
| 53 | 51 |
| 54 std::unique_ptr<MessageCenterTray> message_center_tray_; | 52 std::unique_ptr<MessageCenterTray> message_center_tray_; |
| 55 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 53 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 56 }; | 54 }; |
| 57 | 55 |
| 58 } // namespace message_center | 56 } // namespace message_center |
| 59 | 57 |
| 60 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 58 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |