Home | History | Annotate | Download | only in infobars

Lines Matching refs:infobar

8 #include "chrome/browser/ui/views/infobars/infobar.h"
20 top_arrow_target_height_(InfoBar::kDefaultArrowTargetHeight) {
32 InfoBar* infobar = infobars_.front();
33 // NULL the container pointer first so that if the infobar is currently
36 // InfoBar::MaybeDelete() from calling RemoveInfoBar() a second time if the
37 // infobar happens to be at zero height (dunno if this can actually happen).
38 infobar->set_container(NULL);
39 RemoveInfoBar(infobar);
54 // OnInfoBarAnimated() for each infobar.
71 InfoBar* infobar = *i;
72 next_infobar_y -= infobar->arrow_height();
74 next_infobar_y += infobar->total_height();
84 // line height, because the infobar arrow target heights are without-stroke.
86 std::max(height - InfoBar::kSeparatorLineHeight, 0),
87 InfoBar::kMaximumArrowTargetHeight);
100 void InfoBarContainer::RemoveInfoBar(InfoBar* infobar) {
102 infobars_.end(), infobar));
104 PlatformSpecificRemoveInfoBar(infobar);
147 // Search for the infobar associated with |delegate|. We cannot search for
148 // |delegate| in |tab_contents_|, because an InfoBar remains alive until its
152 InfoBar* infobar = *i;
153 if (infobar->delegate() == delegate) {
154 // We merely need hide the infobar; it will call back to RemoveInfoBar()
156 infobar->Hide(use_animation);
163 void InfoBarContainer::AddInfoBar(InfoBar* infobar,
166 DCHECK(std::find(infobars_.begin(), infobars_.end(), infobar) ==
168 infobars_.push_back(infobar);
170 PlatformSpecificAddInfoBar(infobar);
172 infobar->set_container(this);
173 infobar->Show(animate);
175 infobar->set_container(this);
189 const_cast<const InfoBar*>(infobars_.front())->animation();
191 return InfoBar::kDefaultArrowTargetHeight;
192 // When the first infobar is animating closed, we animate the second infobar's
196 (InfoBar::kDefaultArrowTargetHeight - top_arrow_target_height_) *