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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/notifications/balloon.h" | 14 #include "chrome/browser/notifications/balloon.h" |
15 #include "chrome/browser/ui/views/notifications/balloon_view_host.h" | 15 #include "chrome/browser/ui/views/notifications/balloon_view_host.h" |
16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
17 #include "ui/base/animation/animation_delegate.h" | 17 #include "ui/base/animation/animation_delegate.h" |
18 #include "ui/gfx/path.h" | 18 #include "ui/gfx/path.h" |
19 #include "ui/gfx/point.h" | 19 #include "ui/gfx/point.h" |
20 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
21 #include "ui/gfx/size.h" | 21 #include "ui/gfx/size.h" |
| 22 #include "ui/views/widget/widget_delegate.h" |
22 #include "views/controls/button/menu_button.h" | 23 #include "views/controls/button/menu_button.h" |
23 #include "views/controls/label.h" | 24 #include "views/controls/label.h" |
24 #include "views/controls/menu/view_menu_delegate.h" | 25 #include "views/controls/menu/view_menu_delegate.h" |
25 #include "views/view.h" | 26 #include "views/view.h" |
26 #include "views/widget/widget_delegate.h" | |
27 | 27 |
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; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; | 154 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; |
155 scoped_ptr<views::MenuRunner> menu_runner_; | 155 scoped_ptr<views::MenuRunner> menu_runner_; |
156 views::MenuButton* options_menu_button_; | 156 views::MenuButton* options_menu_button_; |
157 | 157 |
158 content::NotificationRegistrar notification_registrar_; | 158 content::NotificationRegistrar notification_registrar_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 160 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
161 }; | 161 }; |
162 | 162 |
163 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 163 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
OLD | NEW |