Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: chrome/browser/chromeos/notifications/notification_panel.h

Issue 6247002: chromeos: Run beforeunload handlers when closing panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // BalloonCollectionImpl::NotificationUI overrides.. 91 // BalloonCollectionImpl::NotificationUI overrides..
92 virtual void Add(Balloon* balloon); 92 virtual void Add(Balloon* balloon);
93 virtual bool Update(Balloon* balloon); 93 virtual bool Update(Balloon* balloon);
94 virtual void Remove(Balloon* balloon); 94 virtual void Remove(Balloon* balloon);
95 virtual void Show(Balloon* balloon); 95 virtual void Show(Balloon* balloon);
96 virtual void ResizeNotification(Balloon* balloon, 96 virtual void ResizeNotification(Balloon* balloon,
97 const gfx::Size& size); 97 const gfx::Size& size);
98 virtual void SetActiveView(BalloonViewImpl* view); 98 virtual void SetActiveView(BalloonViewImpl* view);
99 99
100 // PanelController 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 void ClosePanel(); 104 virtual void ClosePanel();
104 105
105 // NotificationObserver overrides: 106 // NotificationObserver overrides:
106 virtual void Observe(NotificationType type, 107 virtual void Observe(NotificationType type,
107 const NotificationSource& source, 108 const NotificationSource& source,
108 const NotificationDetails& details); 109 const NotificationDetails& details);
109 110
110 // Called when a mouse left the panel window. 111 // Called when a mouse left the panel window.
111 void OnMouseLeave(); 112 void OnMouseLeave();
112 void OnMouseMotion(const gfx::Point& point); 113 void OnMouseMotion(const gfx::Point& point);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool IsActive(const BalloonViewImpl* view) const; 238 bool IsActive(const BalloonViewImpl* view) const;
238 239
239 private: 240 private:
240 NotificationPanel* panel_; 241 NotificationPanel* panel_;
241 DISALLOW_COPY_AND_ASSIGN(NotificationPanelTester); 242 DISALLOW_COPY_AND_ASSIGN(NotificationPanelTester);
242 }; 243 };
243 244
244 } // namespace chromeos 245 } // namespace chromeos
245 246
246 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_ 247 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_NOTIFICATION_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698