OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Draws the view for the balloons. | 5 // Draws the view for the balloons. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ |
8 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ | 8 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 virtual void SetActiveView(BalloonViewImpl* view); | 98 virtual void SetActiveView(BalloonViewImpl* view); |
99 | 99 |
100 // PanelController::Delegate overrides. | 100 // PanelController::Delegate overrides. |
101 virtual string16 GetPanelTitle(); | 101 virtual string16 GetPanelTitle(); |
102 virtual SkBitmap GetPanelIcon(); | 102 virtual SkBitmap GetPanelIcon(); |
103 virtual bool CanClosePanel(); | 103 virtual bool CanClosePanel(); |
104 virtual void ClosePanel(); | 104 virtual void ClosePanel(); |
105 virtual void ActivatePanel(); | 105 virtual void ActivatePanel(); |
106 | 106 |
107 // NotificationObserver overrides: | 107 // NotificationObserver overrides: |
108 virtual void Observe(NotificationType type, | 108 virtual void Observe(int type, |
109 const NotificationSource& source, | 109 const NotificationSource& source, |
110 const NotificationDetails& details); | 110 const NotificationDetails& details); |
111 | 111 |
112 // Called when a mouse left the panel window. | 112 // Called when a mouse left the panel window. |
113 void OnMouseLeave(); | 113 void OnMouseLeave(); |
114 void OnMouseMotion(const gfx::Point& point); | 114 void OnMouseMotion(const gfx::Point& point); |
115 | 115 |
116 NotificationPanelTester* GetTester(); | 116 NotificationPanelTester* GetTester(); |
117 | 117 |
118 private: | 118 private: |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 bool IsActive(const BalloonViewImpl* view) const; | 239 bool IsActive(const BalloonViewImpl* view) const; |
240 | 240 |
241 private: | 241 private: |
242 NotificationPanel* panel_; | 242 NotificationPanel* panel_; |
243 DISALLOW_COPY_AND_ASSIGN(NotificationPanelTester); | 243 DISALLOW_COPY_AND_ASSIGN(NotificationPanelTester); |
244 }; | 244 }; |
245 | 245 |
246 } // namespace chromeos | 246 } // namespace chromeos |
247 | 247 |
248 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ | 248 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ |
OLD | NEW |