| OLD | NEW |
| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual void ButtonPressed(views::Button* sender, | 102 virtual void ButtonPressed(views::Button* sender, |
| 103 const ui::Event& event) OVERRIDE; | 103 const ui::Event& event) OVERRIDE; |
| 104 | 104 |
| 105 // Overridden from MessageCenterTrayDelegate. | 105 // Overridden from MessageCenterTrayDelegate. |
| 106 virtual void OnMessageCenterTrayChanged() OVERRIDE; | 106 virtual void OnMessageCenterTrayChanged() OVERRIDE; |
| 107 virtual bool ShowMessageCenter() OVERRIDE; | 107 virtual bool ShowMessageCenter() OVERRIDE; |
| 108 virtual void HideMessageCenter() OVERRIDE; | 108 virtual void HideMessageCenter() OVERRIDE; |
| 109 virtual bool ShowPopups() OVERRIDE; | 109 virtual bool ShowPopups() OVERRIDE; |
| 110 virtual void HidePopups() OVERRIDE; | 110 virtual void HidePopups() OVERRIDE; |
| 111 virtual bool ShowNotifierSettings() OVERRIDE; | 111 virtual bool ShowNotifierSettings() OVERRIDE; |
| 112 virtual bool IsContextMenuEnabled() const OVERRIDE; |
| 112 virtual message_center::MessageCenterTray* GetMessageCenterTray() OVERRIDE; | 113 virtual message_center::MessageCenterTray* GetMessageCenterTray() OVERRIDE; |
| 113 | 114 |
| 114 // Overridden from SimpleMenuModel::Delegate. | 115 // Overridden from SimpleMenuModel::Delegate. |
| 115 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 116 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
| 116 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 117 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
| 117 virtual bool GetAcceleratorForCommandId( | 118 virtual bool GetAcceleratorForCommandId( |
| 118 int command_id, | 119 int command_id, |
| 119 ui::Accelerator* accelerator) OVERRIDE; | 120 ui::Accelerator* accelerator) OVERRIDE; |
| 120 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 121 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
| 121 | 122 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 179 |
| 179 // Observes the work area for |popup_collection_| and notifies to it. | 180 // Observes the work area for |popup_collection_| and notifies to it. |
| 180 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; | 181 scoped_ptr<internal::WorkAreaObserver> work_area_observer_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); | 183 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace ash | 186 } // namespace ash |
| 186 | 187 |
| 187 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ | 188 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ |
| OLD | NEW |