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_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ | 7 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ |
8 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ | 8 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void RepositionToBalloon(); | 49 virtual void RepositionToBalloon(); |
50 virtual void Close(bool by_user); | 50 virtual void Close(bool by_user); |
51 virtual gfx::Size GetSize() const; | 51 virtual gfx::Size GetSize() const; |
52 virtual BalloonHost* GetHost() const; | 52 virtual BalloonHost* GetHost() const; |
53 | 53 |
54 // MenuGtk::Delegate interface. | 54 // MenuGtk::Delegate interface. |
55 virtual void StoppedShowing(); | 55 virtual void StoppedShowing(); |
56 | 56 |
57 private: | 57 private: |
58 // NotificationObserver interface. | 58 // NotificationObserver interface. |
59 virtual void Observe(NotificationType type, | 59 virtual void Observe(int type, |
60 const NotificationSource& source, | 60 const NotificationSource& source, |
61 const NotificationDetails& details); | 61 const NotificationDetails& details); |
62 | 62 |
63 // ui::AnimationDelegate interface. | 63 // ui::AnimationDelegate interface. |
64 virtual void AnimationProgressed(const ui::Animation* animation); | 64 virtual void AnimationProgressed(const ui::Animation* animation); |
65 | 65 |
66 // Do the delayed close work. The balloon and all view components will be | 66 // Do the delayed close work. The balloon and all view components will be |
67 // destroyed at this time, so it shouldn't be called while still processing | 67 // destroyed at this time, so it shouldn't be called while still processing |
68 // an event that relies on them. | 68 // an event that relies on them. |
69 void DelayedClose(bool by_user); | 69 void DelayedClose(bool by_user); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // Is the menu currently showing? | 135 // Is the menu currently showing? |
136 bool menu_showing_; | 136 bool menu_showing_; |
137 | 137 |
138 // Is there a pending system-initiated close? | 138 // Is there a pending system-initiated close? |
139 bool pending_close_; | 139 bool pending_close_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); | 141 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); |
142 }; | 142 }; |
143 | 143 |
144 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ | 144 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ |
OLD | NEW |