| 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_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ | 7 #ifndef CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ |
| 8 #define CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ | 8 #define CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 public: | 39 public: |
| 40 explicit BalloonViewImpl(BalloonCollection* collection); | 40 explicit BalloonViewImpl(BalloonCollection* collection); |
| 41 ~BalloonViewImpl(); | 41 ~BalloonViewImpl(); |
| 42 | 42 |
| 43 // BalloonView interface. | 43 // BalloonView interface. |
| 44 virtual void Show(Balloon* balloon); | 44 virtual void Show(Balloon* balloon); |
| 45 virtual void Update(); | 45 virtual void Update(); |
| 46 virtual void RepositionToBalloon(); | 46 virtual void RepositionToBalloon(); |
| 47 virtual void Close(bool by_user); | 47 virtual void Close(bool by_user); |
| 48 virtual gfx::Size GetSize() const; | 48 virtual gfx::Size GetSize() const; |
| 49 virtual BalloonHost* GetHost() const { return html_contents_.get(); } | 49 virtual BalloonHost* GetHost() const; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 // NotificationObserver interface. | 52 // NotificationObserver interface. |
| 53 virtual void Observe(NotificationType type, | 53 virtual void Observe(NotificationType type, |
| 54 const NotificationSource& source, | 54 const NotificationSource& source, |
| 55 const NotificationDetails& details); | 55 const NotificationDetails& details); |
| 56 | 56 |
| 57 // AnimationDelegate interface. | 57 // AnimationDelegate interface. |
| 58 virtual void AnimationProgressed(const Animation* animation); | 58 virtual void AnimationProgressed(const Animation* animation); |
| 59 | 59 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; | 118 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; |
| 119 // The button to open the options menu. | 119 // The button to open the options menu. |
| 120 scoped_ptr<CustomDrawButton> options_menu_button_; | 120 scoped_ptr<CustomDrawButton> options_menu_button_; |
| 121 | 121 |
| 122 NotificationRegistrar notification_registrar_; | 122 NotificationRegistrar notification_registrar_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 124 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 #endif // CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ | 127 #endif // CHROME_BROWSER_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ |
| OLD | NEW |