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_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 private: | 65 private: |
66 // views::View interface. | 66 // views::View interface. |
67 virtual void Paint(gfx::Canvas* canvas); | 67 virtual void Paint(gfx::Canvas* canvas); |
68 virtual void DidChangeBounds(const gfx::Rect& previous, | 68 virtual void DidChangeBounds(const gfx::Rect& previous, |
69 const gfx::Rect& current); | 69 const gfx::Rect& current); |
70 virtual gfx::Size GetPreferredSize() { | 70 virtual gfx::Size GetPreferredSize() { |
71 return gfx::Size(1000, 1000); | 71 return gfx::Size(1000, 1000); |
72 } | 72 } |
73 | 73 |
74 // views::ViewMenuDelegate interface. | 74 // views::ViewMenuDelegate interface. |
75 void RunMenu(views::View* source, const gfx::Point& pt); | 75 virtual void RunMenu(views::View* source, const gfx::Point& pt); |
76 | 76 |
77 // views::WidgetDelegate interface. | 77 // views::WidgetDelegate interface. |
78 void DisplayChanged(); | 78 virtual void DisplayChanged(); |
79 void WorkAreaChanged(); | 79 virtual void WorkAreaChanged(); |
80 | 80 |
81 // views::ButtonListener interface. | 81 // views::ButtonListener interface. |
82 virtual void ButtonPressed(views::Button* sender, const views::Event&); | 82 virtual void ButtonPressed(views::Button* sender, const views::Event&); |
83 | 83 |
84 // NotificationObserver interface. | 84 // NotificationObserver interface. |
85 virtual void Observe(NotificationType type, | 85 virtual void Observe(NotificationType type, |
86 const NotificationSource& source, | 86 const NotificationSource& source, |
87 const NotificationDetails& details); | 87 const NotificationDetails& details); |
88 | 88 |
89 // AnimationDelegate interface. | 89 // AnimationDelegate interface. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; | 163 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; |
164 scoped_ptr<views::Menu2> options_menu_menu_; | 164 scoped_ptr<views::Menu2> options_menu_menu_; |
165 views::MenuButton* options_menu_button_; | 165 views::MenuButton* options_menu_button_; |
166 | 166 |
167 NotificationRegistrar notification_registrar_; | 167 NotificationRegistrar notification_registrar_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 169 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
170 }; | 170 }; |
171 | 171 |
172 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 172 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
OLD | NEW |