| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // views::WidgetDelegate interface. | 74 // views::WidgetDelegate interface. |
| 75 virtual void OnDisplayChanged() OVERRIDE; | 75 virtual void OnDisplayChanged() OVERRIDE; |
| 76 virtual void OnWorkAreaChanged() OVERRIDE; | 76 virtual void OnWorkAreaChanged() OVERRIDE; |
| 77 | 77 |
| 78 // views::ButtonListener interface. | 78 // views::ButtonListener interface. |
| 79 virtual void ButtonPressed( | 79 virtual void ButtonPressed( |
| 80 views::Button* sender, const views::Event&) OVERRIDE; | 80 views::Button* sender, const views::Event&) OVERRIDE; |
| 81 | 81 |
| 82 // NotificationObserver interface. | 82 // NotificationObserver interface. |
| 83 virtual void Observe(NotificationType type, | 83 virtual void Observe(int type, |
| 84 const NotificationSource& source, | 84 const NotificationSource& source, |
| 85 const NotificationDetails& details) OVERRIDE; | 85 const NotificationDetails& details) OVERRIDE; |
| 86 | 86 |
| 87 // ui::AnimationDelegate interface. | 87 // ui::AnimationDelegate interface. |
| 88 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 88 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 89 | 89 |
| 90 // Launches the options menu at screen coordinates |pt|. | 90 // Launches the options menu at screen coordinates |pt|. |
| 91 void RunOptionsMenu(const gfx::Point& pt); | 91 void RunOptionsMenu(const gfx::Point& pt); |
| 92 | 92 |
| 93 // Initializes the options menu. | 93 // Initializes the options menu. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; | 161 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; |
| 162 scoped_ptr<views::Menu2> options_menu_menu_; | 162 scoped_ptr<views::Menu2> options_menu_menu_; |
| 163 views::MenuButton* options_menu_button_; | 163 views::MenuButton* options_menu_button_; |
| 164 | 164 |
| 165 NotificationRegistrar notification_registrar_; | 165 NotificationRegistrar notification_registrar_; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 167 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ | 170 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_H_ |
| OLD | NEW |