Home
last modified time | relevance | path

Searched refs:balloon (Results 1 – 25 of 48) sorted by relevance

12

/external/chromium/chrome/browser/chromeos/notifications/
Dballoon_collection_impl.cc56 Balloon* balloon = FindBalloon(notification); in AddWebUIMessageCallback() local
57 if (!balloon) { in AddWebUIMessageCallback()
62 static_cast<BalloonViewHost*>(balloon->view()->GetHost()); in AddWebUIMessageCallback()
86 Balloon* balloon = FindBalloon(notification); in UpdateNotification() local
87 if (!balloon) in UpdateNotification()
89 balloon->Update(notification); in UpdateNotification()
90 notification_ui_->Update(balloon); in UpdateNotification()
96 Balloon* balloon = FindBalloon(notification); in UpdateAndShowNotification() local
97 if (!balloon) in UpdateAndShowNotification()
99 balloon->Update(notification); in UpdateAndShowNotification()
[all …]
Dnotification_panel.cc65 chromeos::BalloonViewImpl* GetBalloonViewOf(const Balloon* balloon) { in GetBalloonViewOf() argument
66 return static_cast<chromeos::BalloonViewImpl*>(balloon->view()); in GetBalloonViewOf()
285 void Add(Balloon* balloon) { in Add() argument
286 BalloonViewImpl* view = GetBalloonViewOf(balloon); in Add()
287 GetContainerFor(balloon)->AddChildView(view); in Add()
291 bool Update(Balloon* balloon) { in Update() argument
292 BalloonViewImpl* view = GetBalloonViewOf(balloon); in Update()
309 BalloonViewImpl* Remove(Balloon* balloon) { in Remove() argument
310 BalloonViewImpl* view = GetBalloonViewOf(balloon); in Remove()
311 GetContainerFor(balloon)->RemoveChildView(view); in Remove()
[all …]
Ddesktop_notifications_unittest.cc20 virtual void Add(Balloon* balloon) {} in Add() argument
21 virtual bool Update(Balloon* balloon) { return false; } in Update() argument
22 virtual void Remove(Balloon* balloon) {} in Remove() argument
23 virtual void Show(Balloon* balloon) {} in Show() argument
24 virtual void ResizeNotification(Balloon* balloon, in ResizeNotification() argument
50 Balloon* balloon = BalloonCollectionImpl::MakeBalloon(notification, profile); in MakeBalloon() local
51 balloon->set_view(new MockBalloonView(balloon)); in MakeBalloon()
52 balloons_.insert(balloon); in MakeBalloon()
53 return balloon; in MakeBalloon()
265 Balloon* balloon = (*balloon_collection_->balloons().begin()); in TEST_F() local
[all …]
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,
130 void ScrollBalloonToVisible(Balloon* balloon);
146 void StartStaleTimer(Balloon* balloon);
Dballoon_collection_impl.h43 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);
Dballoon_view_host.h26 explicit BalloonViewHost(Balloon* balloon) : ::BalloonViewHost(balloon) {} in BalloonViewHost() argument
Dballoon_view.cc213 void BalloonViewImpl::Show(Balloon* balloon) { in Show() argument
214 balloon_ = balloon; in Show()
215 html_contents_ = new BalloonViewHost(balloon); in Show()
220 NotificationType::NOTIFY_BALLOON_DISCONNECTED, Source<Balloon>(balloon)); in Show()
/external/chromium/chrome/browser/ui/cocoa/notifications/
Dballoon_controller_unittest.mm7 #include "chrome/browser/notifications/balloon.h"
17 // Subclass balloon controller and mock out the initialization of the RVH.
29 // Use a dummy balloon collection for testing.
37 virtual void ResizeBalloon(Balloon* balloon, const gfx::Size& size) {}
82 scoped_ptr<Balloon> balloon(
84 balloon->SetPosition(gfx::Point(1, 1), false);
85 balloon->set_content_size(gfx::Size(100, 100));
88 [[TestBalloonController alloc] initWithBalloon:balloon.get()];
98 scoped_ptr<Balloon> balloon(
100 balloon->SetPosition(gfx::Point(1, 1), false);
[all …]
Dballoon_controller.mm12 #include "chrome/browser/notifications/balloon.h"
45 - (id)initWithBalloon:(Balloon*)balloon {
50 balloon_ = balloon;
52 menuModel_.reset(new NotificationOptionsMenuModel(balloon));
96 // Set the initial position without animating (the balloon should not
166 // Otherwise the script can close the notification and underlying balloon
196 // Returns the total width the view should be to accommodate the balloon.
202 // Returns the total height the view should be to accommodate the balloon.
Dballoon_view_host_mac.mm10 BalloonViewHost::BalloonViewHost(Balloon* balloon)
11 : BalloonHost(balloon) {
Dballoon_view_bridge.mm36 void BalloonViewBridge::Show(Balloon* balloon) {
37 controller_ = [[BalloonController alloc] initWithBalloon:balloon];
/external/chromium/chrome/browser/notifications/
Dballoon_collection_base.cc19 void BalloonCollectionBase::Add(Balloon* balloon) { in Add() argument
20 balloons_.push_back(balloon); in Add()
23 void BalloonCollectionBase::Remove(Balloon* balloon) { in Remove() argument
25 scoped_ptr<Balloon> to_delete(balloon); in Remove()
28 if ((*iter) == balloon) { in Remove()
Dballoon_collection_win.cc13 Balloon* balloon = new Balloon(notification, profile, this); in MakeBalloon() local
14 balloon->set_view(new BalloonViewImpl(this)); in MakeBalloon()
16 balloon->set_content_size(size); in MakeBalloon()
17 return balloon; in MakeBalloon()
Dballoon_collection_linux.cc18 Balloon* balloon = new Balloon(notification, profile, this); in MakeBalloon() local
20 balloon->set_view(new BalloonViewImpl(this)); in MakeBalloon()
22 balloon->set_content_size(size); in MakeBalloon()
23 return balloon; in MakeBalloon()
Dnotification_options_menu_model.cc41 CornerSelectionMenuModel::CornerSelectionMenuModel(Balloon* balloon) in CornerSelectionMenuModel() argument
43 balloon_(balloon) { in CornerSelectionMenuModel()
112 NotificationOptionsMenuModel::NotificationOptionsMenuModel(Balloon* balloon) in NotificationOptionsMenuModel() argument
114 balloon_(balloon) { in NotificationOptionsMenuModel()
115 const Notification& notification = balloon->notification(); in NotificationOptionsMenuModel()
140 corner_menu_model_.reset(new CornerSelectionMenuModel(balloon)); in NotificationOptionsMenuModel()
Dballoon_collection_mac.mm13 Balloon* balloon = new Balloon(notification, profile, this);
14 balloon->set_view(new BalloonViewBridge());
16 balloon->set_content_size(size);
17 return balloon;
Dnotification_test_util.h78 explicit MockBalloonView(Balloon * balloon) : in MockBalloonView() argument
79 balloon_(balloon) {} in MockBalloonView()
82 virtual void Show(Balloon* balloon) {} in Show() argument
Dballoon_collection_base.h30 virtual void Add(Balloon* balloon);
34 virtual void Remove(Balloon* balloon);
Ddesktop_notifications_unittest.cc45 Balloon* balloon = BalloonCollectionImpl::MakeBalloon(notification, profile); in MakeBalloon() local
46 balloon->set_view(new MockBalloonView(balloon)); in MakeBalloon()
47 balloons_.push_back(balloon); in MakeBalloon()
48 return balloon; in MakeBalloon()
331 Balloon* balloon = (*balloon_collection_->balloons().begin()); in TEST_F() local
332 GURL data_url = balloon->notification().content_url(); in TEST_F()
Dnotification_options_menu_model.h16 explicit CornerSelectionMenuModel(Balloon* balloon);
37 explicit NotificationOptionsMenuModel(Balloon* balloon);
/external/chromium/chrome/browser/ui/gtk/notifications/
Dballoon_view_host_gtk.cc12 BalloonViewHost::BalloonViewHost(Balloon* balloon) in BalloonViewHost() argument
13 : BalloonHost(balloon), in BalloonViewHost()
Dballoon_view_gtk.cc208 void BalloonViewImpl::Show(Balloon* balloon) { in Show() argument
209 theme_service_ = GtkThemeService::GetFrom(balloon->profile()); in Show()
213 balloon->notification().display_source()); in Show()
219 balloon_ = balloon; in Show()
227 html_contents_.reset(new BalloonViewHost(balloon)); in Show()
340 NotificationType::NOTIFY_BALLOON_DISCONNECTED, Source<Balloon>(balloon)); in Show()
/external/chromium/chrome/browser/ui/views/notifications/
Dballoon_view_host.cc52 BalloonViewHost::BalloonViewHost(Balloon* balloon) in BalloonViewHost() argument
53 : BalloonHost(balloon) { in BalloonViewHost()
Dballoon_view.cc279 void BalloonViewImpl::Show(Balloon* balloon) { in Show() argument
282 balloon_ = balloon; in Show()
289 balloon->notification().display_source()); in Show()
316 html_contents_.reset(new BalloonViewHost(balloon)); in Show()
362 NotificationType::NOTIFY_BALLOON_DISCONNECTED, Source<Balloon>(balloon)); in Show()
/external/chromium/chrome/browser/extensions/
Dextension_crash_recovery_browsertest.cc43 Balloon* balloon = GetNotificationDelegate(index); in AcceptNotification() local
44 ASSERT_TRUE(balloon); in AcceptNotification()
45 balloon->OnClick(); in AcceptNotification()
50 Balloon* balloon = GetNotificationDelegate(index); in CancelNotification() local
53 manager->CancelById(balloon->notification().notification_id()); in CancelNotification()

12