Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/browser/ui/gtk/notifications/balloon_view_gtk.h

Issue 6273010: [linux] When the user has the notification options menu, delay system-initiat... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 ~BalloonViewImpl(); 44 ~BalloonViewImpl();
45 45
46 // BalloonView interface. 46 // BalloonView interface.
47 virtual void Show(Balloon* balloon); 47 virtual void Show(Balloon* balloon);
48 virtual void Update(); 48 virtual void Update();
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.
55 virtual void StoppedShowing();
56
54 private: 57 private:
55 // NotificationObserver interface. 58 // NotificationObserver interface.
56 virtual void Observe(NotificationType type, 59 virtual void Observe(NotificationType type,
57 const NotificationSource& source, 60 const NotificationSource& source,
58 const NotificationDetails& details); 61 const NotificationDetails& details);
59 62
60 // ui::AnimationDelegate interface. 63 // ui::AnimationDelegate interface.
61 virtual void AnimationProgressed(const ui::Animation* animation); 64 virtual void AnimationProgressed(const ui::Animation* animation);
62 65
63 // Do the delayed close work. 66 // Do the delayed close work.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 gfx::Rect anim_frame_end_; 120 gfx::Rect anim_frame_end_;
118 121
119 // The options menu. 122 // The options menu.
120 scoped_ptr<MenuGtk> options_menu_; 123 scoped_ptr<MenuGtk> options_menu_;
121 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_; 124 scoped_ptr<NotificationOptionsMenuModel> options_menu_model_;
122 // The button to open the options menu. 125 // The button to open the options menu.
123 scoped_ptr<CustomDrawButton> options_menu_button_; 126 scoped_ptr<CustomDrawButton> options_menu_button_;
124 127
125 NotificationRegistrar notification_registrar_; 128 NotificationRegistrar notification_registrar_;
126 129
130 // Is the menu currently showing?
131 bool menu_showing_;
132
133 // Is there a pending system-initiated close?
134 bool pending_close_;
135
127 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); 136 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl);
128 }; 137 };
129 138
130 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 139 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698