Searched refs:balloon (Results 1 - 25 of 35) sorted by relevance

12

/external/chromium/chrome/browser/chromeos/notifications/
H A Dballoon_collection_impl.cc12 #include "chrome/browser/notifications/balloon.h"
56 Balloon* balloon = FindBalloon(notification); local
57 if (!balloon) {
62 static_cast<BalloonViewHost*>(balloon->view()->GetHost());
86 Balloon* balloon = FindBalloon(notification); local
87 if (!balloon)
89 balloon->Update(notification);
90 notification_ui_->Update(balloon);
96 Balloon* balloon = FindBalloon(notification); local
97 if (!balloon)
122 ResizeBalloon(Balloon* balloon, const gfx::Size& size) argument
[all...]
H A Dballoon_collection_impl.h28 // A balloon collection represents a set of notification balloons being
42 // Add, remove, resize and show the balloon.
43 virtual void Add(Balloon* balloon) = 0;
44 virtual bool Update(Balloon* balloon) = 0;
45 virtual void Remove(Balloon* balloon) = 0;
46 virtual void Show(Balloon* balloon) = 0;
49 virtual void ResizeNotification(Balloon* balloon,
68 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size);
117 // Creates a new balloon. Overridable by unit tests. The caller is
H A Dballoon_view_host.h26 explicit BalloonViewHost(Balloon* balloon) : ::BalloonViewHost(balloon) {} argument
H A Dnotification_panel.h92 virtual void Add(Balloon* balloon);
93 virtual bool Update(Balloon* balloon);
94 virtual void Remove(Balloon* balloon);
95 virtual void Show(Balloon* balloon);
96 virtual void ResizeNotification(Balloon* balloon,
129 // Scroll the panel so that the |balloon| is visible.
130 void ScrollBalloonToVisible(Balloon* balloon);
146 void StartStaleTimer(Balloon* balloon);
194 // A balloon that should be visible when it gets some size.
H A Ddesktop_notifications_unittest.cc20 virtual void Add(Balloon* balloon) {} argument
21 virtual bool Update(Balloon* balloon) { return false; } argument
22 virtual void Remove(Balloon* balloon) {} argument
23 virtual void Show(Balloon* balloon) {} argument
24 virtual void ResizeNotification(Balloon* balloon, argument
37 // balloon collection.
49 // Start with a normal balloon but mock out the view.
50 Balloon* balloon = BalloonCollectionImpl::MakeBalloon(notification, profile); local
51 balloon->set_view(new MockBalloonView(balloon));
265 Balloon* balloon = (*balloon_collection_->balloons().begin()); local
[all...]
H A Dnotification_panel.cc29 // Minimum and maximum size of balloon content.
65 chromeos::BalloonViewImpl* GetBalloonViewOf(const Balloon* balloon) { argument
66 return static_cast<chromeos::BalloonViewImpl*>(balloon->view());
285 void Add(Balloon* balloon) { argument
286 BalloonViewImpl* view = GetBalloonViewOf(balloon);
287 GetContainerFor(balloon)->AddChildView(view);
290 // Updates the position of the |balloon|.
291 bool Update(Balloon* balloon) { argument
292 BalloonViewImpl* view = GetBalloonViewOf(balloon);
309 BalloonViewImpl* Remove(Balloon* balloon) { argument
489 Add(Balloon* balloon) argument
502 Update(Balloon* balloon) argument
506 Remove(Balloon* balloon) argument
530 Show(Balloon* balloon) argument
539 ResizeNotification( Balloon* balloon, const gfx::Size& size) argument
675 ScrollBalloonToVisible(Balloon* balloon) argument
770 StartStaleTimer(Balloon* balloon) argument
838 Balloon* balloon = collection->FindBalloon(notification); local
[all...]
H A Dballoon_view.h14 #include "chrome/browser/notifications/balloon.h"
40 // A balloon view is the UI component for a notification panel.
53 virtual void Show(Balloon* balloon);
72 // True if the balloon is for the given |notification|.
106 // Non-owned pointer to the balloon which owns this object.
H A Dballoon_view.cc13 #include "chrome/browser/notifications/balloon.h"
197 // as it is owned by the balloon.
213 void BalloonViewImpl::Show(Balloon* balloon) { argument
214 balloon_ = balloon;
215 html_contents_ = new BalloonViewHost(balloon);
220 NotificationType::NOTIFY_BALLOON_DISCONNECTED, Source<Balloon>(balloon));
296 // If the renderer process attached to this balloon is disconnected
297 // (e.g., because of a crash), we want to close the balloon.
/external/chromium/chrome/browser/ui/gtk/notifications/
H A Dballoon_view_host_gtk.cc7 #include "chrome/browser/notifications/balloon.h"
12 BalloonViewHost::BalloonViewHost(Balloon* balloon) argument
13 : BalloonHost(balloon),
H A Dballoon_view_host_gtk.h20 explicit BalloonViewHost(Balloon* balloon);
26 // Changes the size of the balloon.
H A Dballoon_view_gtk.cc16 #include "chrome/browser/notifications/balloon.h"
57 // balloon bottom.
136 // Although this may not be the instantaneous size of the balloon if
158 // No need to create a slide animation when this balloon is fading out.
208 void BalloonViewImpl::Show(Balloon* balloon) { argument
209 theme_service_ = GtkThemeService::GetFrom(balloon->profile());
213 balloon->notification().display_source());
219 balloon_ = balloon;
226 // Create a BalloonViewHost to host the HTML contents of this balloon.
227 html_contents_.reset(new BalloonViewHost(balloon));
[all...]
/external/chromium/chrome/browser/notifications/
H A Dballoon_collection_base.h29 // Adds a balloon to the collection. Takes ownership of pointer.
30 virtual void Add(Balloon* balloon);
32 // Removes a balloon from the collection (if present). Frees
34 virtual void Remove(Balloon* balloon);
36 // Finds any balloon matching the given notification id, and
51 // Returns the balloon matching the given notification, or
52 // NULL if there is no matching balloon.
H A Dballoon_collection_linux.cc7 #include "chrome/browser/notifications/balloon.h"
18 Balloon* balloon = new Balloon(notification, profile, this); local
20 balloon->set_view(new BalloonViewImpl(this));
22 balloon->set_content_size(size);
23 return balloon;
H A Dballoon_collection_win.cc7 #include "chrome/browser/notifications/balloon.h"
13 Balloon* balloon = new Balloon(notification, profile, this); local
14 balloon->set_view(new BalloonViewImpl(this));
16 balloon->set_content_size(size);
17 return balloon;
H A Dballoon_collection_base.cc8 #include "chrome/browser/notifications/balloon.h"
19 void BalloonCollectionBase::Add(Balloon* balloon) { argument
20 balloons_.push_back(balloon);
23 void BalloonCollectionBase::Remove(Balloon* balloon) { argument
25 scoped_ptr<Balloon> to_delete(balloon);
28 if ((*iter) == balloon) {
H A Dnotification_test_util.h12 #include "chrome/browser/notifications/balloon.h"
73 // Test version of a balloon view which doesn't do anything
78 explicit MockBalloonView(Balloon * balloon) : argument
79 balloon_(balloon) {}
82 virtual void Show(Balloon* balloon) {} argument
H A Dnotification_options_menu_model.h9 #include "chrome/browser/notifications/balloon.h"
16 explicit CornerSelectionMenuModel(Balloon* balloon);
37 explicit NotificationOptionsMenuModel(Balloon* balloon);
H A Dnotification_options_menu_model.cc41 CornerSelectionMenuModel::CornerSelectionMenuModel(Balloon* balloon) argument
43 balloon_(balloon) {
112 NotificationOptionsMenuModel::NotificationOptionsMenuModel(Balloon* balloon) argument
114 balloon_(balloon) {
115 const Notification& notification = balloon->notification();
140 corner_menu_model_.reset(new CornerSelectionMenuModel(balloon));
H A Dballoon_collection.h55 // Adds a new balloon for the specified notification.
73 // Request the resizing of a balloon.
74 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size) = 0;
82 // Inform the collection that a balloon was closed.
104 // For use only with testing. This callback is invoked when a balloon
H A Ddesktop_notifications_unittest.cc28 // balloon collection.
44 // Start with a normal balloon but mock out the view.
45 Balloon* balloon = BalloonCollectionImpl::MakeBalloon(notification, profile); local
46 balloon->set_view(new MockBalloonView(balloon));
47 balloons_.push_back(balloon);
48 return balloon;
143 // Request a notification; should open a balloon.
167 // Request a notification; should open a balloon.
179 // Verify that the balloon collectio
331 Balloon* balloon = (*balloon_collection_->balloons().begin()); local
[all...]
/external/chromium/chrome/browser/ui/cocoa/notifications/
H A Dballoon_view_bridge.h9 #include "chrome/browser/notifications/balloon.h"
25 virtual void Show(Balloon* balloon);
33 // Weak pointer to the balloon controller which manages the UI.
H A Dballoon_view_host_mac.h20 explicit BalloonViewHost(Balloon* balloon);
24 // Changes the size of the balloon.
H A Dballoon_controller.h24 // notification balloon, resize it if the HTML contents of that
25 // balloon change, and move it when the collection of balloons is
29 // The balloon which represents the contents of this view. Weak pointer
61 // Initialize with a balloon object containing the notification data.
62 - (id)initWithBalloon:(Balloon*)balloon;
73 // Closes the balloon. Can be called by the bridge or by the close
77 // Update the contents of the balloon to match the notification.
80 // Repositions the view to match the position and size of the balloon.
/external/chromium/chrome/browser/ui/views/notifications/
H A Dballoon_view_host.h18 explicit BalloonViewHost(Balloon* balloon);
H A Dballoon_view_host.cc7 #include "chrome/browser/notifications/balloon.h"
52 BalloonViewHost::BalloonViewHost(Balloon* balloon) argument
53 : BalloonHost(balloon) {

Completed in 228 milliseconds

12