OLD | NEW |
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_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 7 #ifndef CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
8 #define CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 8 #define CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 class ImagePainter; | 32 class ImagePainter; |
33 class TextButton; | 33 class TextButton; |
34 class WidgetWin; | 34 class WidgetWin; |
35 class Menu2; | 35 class Menu2; |
36 } // namespace views | 36 } // namespace views |
37 | 37 |
38 class BalloonCollection; | 38 class BalloonCollection; |
39 class NotificationDetails; | 39 class NotificationDetails; |
40 class NotificationOptionsMenuModel; | 40 class NotificationOptionsMenuModel; |
41 class NotificationSource; | 41 class NotificationSource; |
42 class SlideAnimation; | |
43 | 42 |
44 // A balloon view is the UI component for a desktop notification toasts. | 43 // A balloon view is the UI component for a desktop notification toasts. |
45 // It draws a border, and within the border an HTML renderer. | 44 // It draws a border, and within the border an HTML renderer. |
46 class BalloonViewImpl : public BalloonView, | 45 class BalloonViewImpl : public BalloonView, |
47 public views::View, | 46 public views::View, |
48 public views::ViewMenuDelegate, | 47 public views::ViewMenuDelegate, |
49 public views::WidgetDelegate, | 48 public views::WidgetDelegate, |
50 public views::ButtonListener, | 49 public views::ButtonListener, |
51 public NotificationObserver, | 50 public NotificationObserver, |
52 public AnimationDelegate { | 51 public AnimationDelegate { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; | 162 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; |
164 scoped_ptr<views::Menu2> options_menu_menu_; | 163 scoped_ptr<views::Menu2> options_menu_menu_; |
165 views::MenuButton* options_menu_button_; | 164 views::MenuButton* options_menu_button_; |
166 | 165 |
167 NotificationRegistrar notification_registrar_; | 166 NotificationRegistrar notification_registrar_; |
168 | 167 |
169 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 168 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
170 }; | 169 }; |
171 | 170 |
172 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 171 #endif // CHROME_BROWSER_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
OLD | NEW |