| 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_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 7 #ifndef CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| 8 #define CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 8 #define CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 class BalloonCollection; | 28 class BalloonCollection; |
| 29 class NotificationOptionsMenuModel; | 29 class NotificationOptionsMenuModel; |
| 30 | 30 |
| 31 namespace ui { | 31 namespace ui { |
| 32 class SlideAnimation; | 32 class SlideAnimation; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace views { | 35 namespace views { |
| 36 class ButtonListener; | 36 class ButtonListener; |
| 37 class ImageButton; | 37 class ImageButton; |
| 38 class ImagePainter; | |
| 39 class MenuRunner; | 38 class MenuRunner; |
| 40 class TextButton; | |
| 41 } | 39 } |
| 42 | 40 |
| 43 // A balloon view is the UI component for a desktop notification toasts. | 41 // A balloon view is the UI component for a desktop notification toasts. |
| 44 // It draws a border, and within the border an HTML renderer. | 42 // It draws a border, and within the border an HTML renderer. |
| 45 class BalloonViewImpl : public BalloonView, | 43 class BalloonViewImpl : public BalloonView, |
| 46 public views::ViewMenuDelegate, | 44 public views::ViewMenuDelegate, |
| 47 public views::WidgetDelegateView, | 45 public views::WidgetDelegateView, |
| 48 public views::ButtonListener, | 46 public views::ButtonListener, |
| 49 public content::NotificationObserver, | 47 public content::NotificationObserver, |
| 50 public ui::AnimationDelegate { | 48 public ui::AnimationDelegate { |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; | 154 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; |
| 157 scoped_ptr<views::MenuRunner> menu_runner_; | 155 scoped_ptr<views::MenuRunner> menu_runner_; |
| 158 views::MenuButton* options_menu_button_; | 156 views::MenuButton* options_menu_button_; |
| 159 | 157 |
| 160 content::NotificationRegistrar notification_registrar_; | 158 content::NotificationRegistrar notification_registrar_; |
| 161 | 159 |
| 162 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 160 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
| 163 }; | 161 }; |
| 164 | 162 |
| 165 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 163 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| OLD | NEW |