| Index: ash/common/system/web_notification/web_notification_tray.h
|
| diff --git a/ash/system/web_notification/web_notification_tray.h b/ash/common/system/web_notification/web_notification_tray.h
|
| similarity index 93%
|
| rename from ash/system/web_notification/web_notification_tray.h
|
| rename to ash/common/system/web_notification/web_notification_tray.h
|
| index f36246329f2b1113395dbb28bfc57e6c065aed3d..42d0e7bd82c525fa4019086742a3f4c282acefd3 100644
|
| --- a/ash/system/web_notification/web_notification_tray.h
|
| +++ b/ash/common/system/web_notification/web_notification_tray.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
|
| -#define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
|
| +#ifndef ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
|
| +#define ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
|
|
|
| #include <memory>
|
|
|
| @@ -40,10 +40,12 @@ class MessagePopupCollection;
|
| }
|
|
|
| namespace ash {
|
| -class StatusAreaWidget;
|
| +class AshPopupAlignmentDelegate;
|
| +class SystemTray;
|
| class WebNotificationBubbleWrapper;
|
| class WebNotificationButton;
|
| -class AshPopupAlignmentDelegate;
|
| +class WmShelf;
|
| +class WmWindow;
|
|
|
| class ASH_EXPORT WebNotificationTray
|
| : public TrayBackgroundView,
|
| @@ -53,7 +55,9 @@ class ASH_EXPORT WebNotificationTray
|
| public base::SupportsWeakPtr<WebNotificationTray>,
|
| public ui::SimpleMenuModel::Delegate {
|
| public:
|
| - explicit WebNotificationTray(StatusAreaWidget* status_area_widget);
|
| + WebNotificationTray(WmShelf* shelf,
|
| + WmWindow* status_area_window,
|
| + SystemTray* system_tray);
|
| ~WebNotificationTray() override;
|
|
|
| // Sets the height of the system tray from the edge of the work area so that
|
| @@ -169,7 +173,8 @@ class ASH_EXPORT WebNotificationTray
|
| bool IsPopupVisible() const;
|
| message_center::MessageCenterBubble* GetMessageCenterBubbleForTest();
|
|
|
| - StatusAreaWidget* status_area_widget_;
|
| + WmWindow* status_area_window_;
|
| + SystemTray* system_tray_;
|
| std::unique_ptr<message_center::MessageCenterTray> message_center_tray_;
|
| std::unique_ptr<WebNotificationBubbleWrapper> message_center_bubble_;
|
| std::unique_ptr<message_center::MessagePopupCollection> popup_collection_;
|
| @@ -192,4 +197,4 @@ class ASH_EXPORT WebNotificationTray
|
|
|
| } // namespace ash
|
|
|
| -#endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
|
| +#endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
|
|
|