/external/chromium/chrome/browser/ui/views/infobars/ |
infobar_container_view.h | 26 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar) OVERRIDE; 27 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
|
infobar_container.cc | 8 #include "chrome/browser/ui/views/infobars/infobar.h" 20 top_arrow_target_height_(InfoBar::kDefaultArrowTargetHeight) { 32 InfoBar* infobar = infobars_.front(); local 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; local 152 InfoBar* infobar = *i; local [all...] |
infobar_container_view.cc | 47 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar) { 48 AddChildView(static_cast<InfoBarView*>(infobar)); 51 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { 52 RemoveChildView(static_cast<InfoBarView*>(infobar));
|
infobar_container.h | 16 class InfoBar; 34 // The delegate is notified each time the infobar container changes height, 59 // Called by the delegate when the distance between what the top infobar's 60 // "unspoofable" arrow would point to and the top infobar itself changes. 61 // This enables the top infobar to show a longer arrow (e.g. because of a 70 // Called when a contained infobar has animated or by some other means changed 76 // will notify us back and cause us to close the InfoBar. This is called from 77 // the InfoBar's close button handler. 80 // Called by |infobar| to request that it be removed from the container, as it 81 // is about to delete itself. At this point, |infobar| should already b [all...] |
translate_infobar_base.cc | 22 InfoBar* TranslateInfoBarDelegate::CreateInfoBar() { 23 TranslateInfoBarBase* infobar = NULL; local 26 infobar = new BeforeTranslateInfoBar(this); 29 infobar = new AfterTranslateInfoBar(this); 33 infobar = new TranslateMessageInfoBar(this); 38 infobar_view_ = infobar; 39 return infobar;
|
infobar_background.cc | 54 paint.setStrokeWidth(SkIntToScalar(InfoBar::kSeparatorLineHeight)); 60 InfoBarView* infobar = static_cast<InfoBarView*>(view); local 62 canvas_skia->drawPath(*infobar->fill_path(), paint); 72 canvas_skia->drawPath(*infobar->stroke_path(), paint); 77 view->height() - InfoBar::kSeparatorLineHeight, 78 view->width(), InfoBar::kSeparatorLineHeight);
|
/external/chromium_org/chrome/browser/media/ |
webrtc_browsertest_base.cc | 8 #include "chrome/browser/infobars/infobar.h" 38 MediaStreamInfoBarDelegate* infobar = local 40 infobar->Accept(); 41 CloseInfoBarInTab(tab_contents, infobar); 57 MediaStreamInfoBarDelegate* infobar = local 59 infobar->Cancel(); 60 CloseInfoBarInTab(tab_contents, infobar); 69 MediaStreamInfoBarDelegate* infobar = local 71 infobar->InfoBarDismissed(); 72 CloseInfoBarInTab(tab_contents, infobar); 101 MediaStreamInfoBarDelegate* infobar = details->AsMediaStreamInfoBarDelegate(); local [all...] |
/external/chromium/chrome/browser/translate/ |
translate_manager_browsertest.cc | 84 // Returns the translate infobar if there is 1 infobar and it is a translate 85 // infobar. 92 // If there is 1 infobar and it is a translate infobar, closes it and returns 95 InfoBarDelegate* infobar = GetTranslateInfoBar(); local 96 if (!infobar) 98 infobar->InfoBarDismissed(); // Simulates closing the infobar. 99 contents()->RemoveInfoBar(infobar); 128 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 285 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 353 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 390 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 489 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 512 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 684 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 713 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 756 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 813 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 941 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1012 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1099 TranslateInfoBarDelegate* infobar; local 1183 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local [all...] |
/external/chromium_org/chrome/browser/ui/views/infobars/ |
infobar_container_view.h | 28 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 30 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
|
infobar_container_view.cc | 55 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar, 57 AddChildViewAt(static_cast<InfoBarView*>(infobar), 61 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { 62 RemoveChildView(static_cast<InfoBarView*>(infobar)); 63 base::MessageLoop::current()->DeleteSoon(FROM_HERE, infobar);
|
infobar_background.cc | 7 #include "chrome/browser/infobars/infobar.h" 34 paint.setStrokeWidth(SkIntToScalar(InfoBar::kSeparatorLineHeight)); 39 InfoBarView* infobar = static_cast<InfoBarView*>(view); local 41 canvas_skia->drawPath(infobar->fill_path(), paint); 51 canvas_skia->drawPath(infobar->stroke_path(), paint); 55 canvas->FillRect(gfx::Rect(0, view->height() - InfoBar::kSeparatorLineHeight, 56 view->width(), InfoBar::kSeparatorLineHeight),
|
translate_language_menu_model.cc | 14 TranslateInfoBarBase* infobar, 20 infobar_(infobar),
|
/external/chromium_org/chrome/browser/infobars/ |
infobar_service.cc | 8 #include "chrome/browser/infobars/infobar.h" 20 scoped_ptr<InfoBarDelegate> infobar) { 21 DCHECK(infobar); 27 if ((*i)->EqualsDelegate(infobar.get())) { 28 DCHECK_NE(*i, infobar.get()); 33 InfoBarDelegate* infobar_ptr = infobar.release(); 59 void InfoBarService::RemoveInfoBar(InfoBarDelegate* infobar) { 60 RemoveInfoBarInternal(infobar, true); 79 // Remove the old infobar before notifying, so that if any observers call 80 // back to AddInfoBar() or similar, we don't dupe-check against this infobar 140 InfoBarDelegate* infobar = infobars_[i - 1]; local [all...] |
infobar_container.cc | 16 #include "chrome/browser/infobars/infobar.h" 29 top_arrow_target_height_(InfoBar::kDefaultArrowTargetHeight) { 52 // OnInfoBarAnimated() for each infobar. 70 InfoBar* infobar = *i; local 71 next_infobar_y -= infobar->arrow_height(); 73 next_infobar_y += infobar->total_height(); 83 // line height, because the infobar arrow target heights are without-stroke. 85 std::max(height - InfoBar::kSeparatorLineHeight, 0), 86 InfoBar::kMaximumArrowTargetHeight) 168 InfoBar* infobar = *i; local 193 InfoBar* infobar = infobars_.front(); local [all...] |
infobar_container.h | 16 class InfoBar; 34 // The delegate is notified each time the infobar container changes height, 59 // Called by the delegate when the distance between what the top infobar's 60 // "unspoofable" arrow would point to and the top infobar itself changes. 61 // This enables the top infobar to show a longer arrow (e.g. because of a 70 // Called when a contained infobar has animated or by some other means changed 75 // Called by |infobar| to request that it be removed from the container. At 76 // this point, |infobar| should already be hidden. Once the infobar is 78 void RemoveInfoBar(InfoBar* infobar) [all...] |
infobar_service.h | 27 // Adds an InfoBar for the specified |delegate|. 34 InfoBarDelegate* AddInfoBar(scoped_ptr<InfoBarDelegate> infobar); 36 // Removes the InfoBar for the specified |delegate|. 41 void RemoveInfoBar(InfoBarDelegate* infobar); 43 // Replaces one infobar with another, without any animation in between. 57 // Returns the infobar at the given |index|. The InfoBarService retains 89 void RemoveInfoBarInternal(InfoBarDelegate* infobar, bool animate);
|
/external/chromium_org/chrome/browser/translate/ |
translate_manager_browsertest.cc | 16 #include "chrome/browser/infobars/infobar.h" 147 // Returns the translate infobar if there is 1 infobar and it is a translate 148 // infobar. 154 // If there is 1 infobar and it is a translate infobar, closes it and returns 157 InfoBarDelegate* infobar = GetTranslateInfoBar(); local 158 if (!infobar) 160 infobar->InfoBarDismissed(); // Simulates closing the infobar 180 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 376 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 449 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 488 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 554 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 677 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 837 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 864 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 898 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 998 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1128 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1201 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1288 TranslateInfoBarDelegate* infobar; local 1375 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local [all...] |
/external/chromium_org/chrome/browser/ui/gtk/infobars/ |
infobar_container_gtk.h | 15 class InfoBar; 29 // drawing of infobar arrows on other widgets. 49 // the InfoBar's close button handler. 59 // Paints parts of infobars that aren't inside the infobar's widget. This 61 // toolbars. All infobars starting from |infobar| (NULL for the first) to the 65 InfoBarGtk* infobar); 69 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 71 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE [all...] |
infobar_container_gtk.cc | 53 void InfoBarContainerGtk::PlatformSpecificAddInfoBar(InfoBar* infobar, 55 InfoBarGtk* infobar_gtk = static_cast<InfoBarGtk*>(infobar); 76 void InfoBarContainerGtk::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { 77 InfoBarGtk* infobar_gtk = static_cast<InfoBarGtk*>(infobar); 81 std::find(infobars_gtk_.begin(), infobars_gtk_.end(), infobar); 85 base::MessageLoop::current()->DeleteSoon(FROM_HERE, infobar); 100 InfoBarGtk* infobar) { 104 // For each infobar after |infobar| (or starting from the beginning if NULL) [all...] |
/external/chromium/chrome/browser/ui/gtk/infobars/ |
infobar_container_gtk.cc | 28 // If |infobar_widget| matches |info_bar_delegate|, then close the infobar. 33 InfoBar* infobar = reinterpret_cast<InfoBar*>( local 36 if (!infobar) { 41 if (delegate == infobar->delegate()) 42 infobar->AnimateClose(); 45 // If |infobar_widget| matches |info_bar_delegate|, then close the infobar w/o 50 InfoBar* infobar = reinterpret_cast<InfoBar*> local 66 InfoBar* infobar = reinterpret_cast<InfoBar*>( local 179 InfoBar* infobar = delegate->CreateInfoBar(); local [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
background.js | 6 * Handles requests sent by the content script. Shows an infobar. 10 // infobar. 11 var url = "infobar.html#" + request.count; 13 // Show the infobar on the tab where the request was sent.
|
/external/chromium_org/chrome/browser/ui/ |
hung_plugin_tab_helper.cc | 15 #include "chrome/browser/infobars/infobar.h" 133 // Creates a hung plugin infobar delegate and adds it to |infobar_service|. 216 // not we're currently showing the infobar. 225 // Possibly-null if we're not showing an infobar right now. 226 InfoBarDelegate* infobar; member in struct:HungPluginTabHelper::PluginState 228 // Time to delay before re-showing the infobar for a hung plugin. This is 232 // Handles calling the helper when the infobar should be re-shown. 251 infobar(NULL), 288 if (i->second->infobar) 289 infobar_service->RemoveInfoBar(i->second->infobar); 336 InfoBarDelegate* infobar = local [all...] |
/external/chromium/chrome/browser/download/ |
download_request_infobar_delegate_unittest.cc | 20 ConfirmInfoBarDelegate* infobar() { function in class:MockTabDownloadState 35 // The actual infobar delegate we're listening to. 74 state.infobar()->Accept(); 80 state.infobar()->Cancel();
|
/external/chromium_org/chrome/browser/ui/startup/ |
session_crashed_infobar_delegate_unittest.cc | 55 // Attach the crashed infobar to it. 64 scoped_ptr<ConfirmInfoBarDelegate> infobar(InfoBarService::FromWebContents( 66 ASSERT_TRUE(infobar); 87 infobar->Accept();
|
/external/chromium/chrome/browser/google/ |
google_url_tracker_unittest.cc | 70 virtual InfoBar* CreateInfoBar(); 86 InfoBar* TestInfoBarDelegate::CreateInfoBar() { 257 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( local 259 return infobar->new_google_url(); 263 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( local 265 ASSERT_TRUE(infobar); 266 ASSERT_TRUE(infobar->google_url_tracker()); 267 infobar->google_url_tracker()->AcceptGoogleURL(infobar->new_google_url()); 271 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*> local 279 InfoBarDelegate* infobar = g_browser_process->google_url_tracker()->infobar_; local [all...] |