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 "base/prefs/pref_member.h" | 9 #include "base/prefs/pref_member.h" |
10 #include "chrome/browser/status_icons/status_icon_menu_model.h" | 10 #include "chrome/browser/status_icons/status_icon_menu_model.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void HidePopups() override; | 60 void HidePopups() override; |
61 bool ShowMessageCenter() override; | 61 bool ShowMessageCenter() override; |
62 void HideMessageCenter() override; | 62 void HideMessageCenter() override; |
63 void OnMessageCenterTrayChanged() override; | 63 void OnMessageCenterTrayChanged() override; |
64 bool ShowNotifierSettings() override; | 64 bool ShowNotifierSettings() override; |
65 bool IsContextMenuEnabled() const override; | 65 bool IsContextMenuEnabled() const override; |
66 | 66 |
67 // StatusIconObserver implementation. | 67 // StatusIconObserver implementation. |
68 void OnStatusIconClicked() override; | 68 void OnStatusIconClicked() override; |
69 #if defined(OS_WIN) | 69 #if defined(OS_WIN) |
70 virtual void OnBalloonClicked() override; | 70 void OnBalloonClicked() override; |
71 | 71 |
72 // This shows a platform-specific balloon informing the user of the existence | 72 // This shows a platform-specific balloon informing the user of the existence |
73 // of the message center in the status tray area. | 73 // of the message center in the status tray area. |
74 void DisplayFirstRunBalloon(); | 74 void DisplayFirstRunBalloon(); |
75 | 75 |
76 void EnforceStatusIconVisible(); | 76 void EnforceStatusIconVisible(); |
77 #endif | 77 #endif |
78 | 78 |
79 // StatusIconMenuModel::Delegate implementation. | 79 // StatusIconMenuModel::Delegate implementation. |
80 void ExecuteCommand(int command_id, int event_flags) override; | 80 void ExecuteCommand(int command_id, int event_flags) override; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 bool should_update_tray_content_; | 124 bool should_update_tray_content_; |
125 bool last_quiet_mode_state_; | 125 bool last_quiet_mode_state_; |
126 base::string16 title_; | 126 base::string16 title_; |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 128 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace message_center | 131 } // namespace message_center |
132 | 132 |
133 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ | 133 #endif // CHROME_BROWSER_UI_VIEWS_MESSAGE_CENTER_WEB_NOTIFICATION_TRAY_H_ |
OLD | NEW |