| 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_BALLOON_VIEW_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_VIEW_H_ | 8 #define CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // Called when the notification becomes inactive. | 77 // Called when the notification becomes inactive. |
| 78 void Deactivated(); | 78 void Deactivated(); |
| 79 | 79 |
| 80 private: | 80 private: |
| 81 friend class NotificationControlView; | 81 friend class NotificationControlView; |
| 82 | 82 |
| 83 // views::View interface. | 83 // views::View interface. |
| 84 virtual gfx::Size GetPreferredSize(); | 84 virtual gfx::Size GetPreferredSize(); |
| 85 | 85 |
| 86 // NotificationObserver interface. | 86 // NotificationObserver interface. |
| 87 virtual void Observe(NotificationType type, | 87 virtual void Observe(int type, |
| 88 const NotificationSource& source, | 88 const NotificationSource& source, |
| 89 const NotificationDetails& details); | 89 const NotificationDetails& details); |
| 90 | 90 |
| 91 // Initializes the options menu. | 91 // Initializes the options menu. |
| 92 void CreateOptionsMenu(); | 92 void CreateOptionsMenu(); |
| 93 | 93 |
| 94 // Do the delayed close work. | 94 // Do the delayed close work. |
| 95 void DelayedClose(bool by_user); | 95 void DelayedClose(bool by_user); |
| 96 | 96 |
| 97 // Denies the permission to show the ballooon from its source. | 97 // Denies the permission to show the ballooon from its source. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 122 bool closed_; | 122 bool closed_; |
| 123 // True to enable WebUI in the notification. | 123 // True to enable WebUI in the notification. |
| 124 bool web_ui_; | 124 bool web_ui_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 126 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace chromeos | 129 } // namespace chromeos |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_VIEW_H_ | 131 #endif // CHROME_BROWSER_CHROMEOS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| OLD | NEW |