| 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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/status_icons/status_icon_observer.h" | 9 #include "chrome/browser/status_icons/status_icon_observer.h" |
| 10 #include "ui/base/models/simple_menu_model.h" | 10 #include "ui/base/models/simple_menu_model.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 WebNotificationTray(); | 41 WebNotificationTray(); |
| 42 virtual ~WebNotificationTray(); | 42 virtual ~WebNotificationTray(); |
| 43 | 43 |
| 44 message_center::MessageCenter* message_center(); | 44 message_center::MessageCenter* message_center(); |
| 45 | 45 |
| 46 // MessageCenterTrayDelegate implementation. | 46 // MessageCenterTrayDelegate implementation. |
| 47 virtual bool ShowPopups() OVERRIDE; | 47 virtual bool ShowPopups() OVERRIDE; |
| 48 virtual void HidePopups() OVERRIDE; | 48 virtual void HidePopups() OVERRIDE; |
| 49 virtual bool ShowMessageCenter() OVERRIDE; | 49 virtual bool ShowMessageCenter() OVERRIDE; |
| 50 virtual void HideMessageCenter() OVERRIDE; | 50 virtual void HideMessageCenter() OVERRIDE; |
| 51 virtual void UpdatePopups() OVERRIDE; | |
| 52 virtual void OnMessageCenterTrayChanged() OVERRIDE; | 51 virtual void OnMessageCenterTrayChanged() OVERRIDE; |
| 53 virtual bool ShowNotifierSettings() OVERRIDE; | 52 virtual bool ShowNotifierSettings() OVERRIDE; |
| 54 | 53 |
| 55 // These are forwarded to WebNotificationTray by | 54 // These are forwarded to WebNotificationTray by |
| 56 // NotificationBubbleWrapper classes since they don't have enough | 55 // NotificationBubbleWrapper classes since they don't have enough |
| 57 // context to provide the required data for TrayBubbleView::Delegate. | 56 // context to provide the required data for TrayBubbleView::Delegate. |
| 58 gfx::Rect GetMessageCenterAnchor(); | 57 gfx::Rect GetMessageCenterAnchor(); |
| 59 gfx::Rect GetPopupAnchor(); | 58 gfx::Rect GetPopupAnchor(); |
| 60 gfx::NativeView GetBubbleWindowContainer(); | 59 gfx::NativeView GetBubbleWindowContainer(); |
| 61 views::TrayBubbleView::AnchorAlignment GetAnchorAlignment(); | 60 views::TrayBubbleView::AnchorAlignment GetAnchorAlignment(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 gfx::Point mouse_click_point_; | 98 gfx::Point mouse_click_point_; |
| 100 | 99 |
| 101 bool should_update_tray_content_; | 100 bool should_update_tray_content_; |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 102 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace message_center | 105 } // namespace message_center |
| 107 | 106 |
| 108 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 107 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |