/external/chromium/chrome/browser/translate/ |
D | translate_manager_browsertest.cc | 95 InfoBarDelegate* infobar = GetTranslateInfoBar(); in CloseTranslateInfoBar() local 96 if (!infobar) in CloseTranslateInfoBar() 98 infobar->InfoBarDismissed(); // Simulates closing the infobar. in CloseTranslateInfoBar() 99 contents()->RemoveInfoBar(infobar); in CloseTranslateInfoBar() 128 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in DenyTranslation() local 129 if (!infobar) in DenyTranslation() 131 infobar->TranslationDeclined(); in DenyTranslation() 132 contents()->RemoveInfoBar(infobar); in DenyTranslation() 285 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in TEST_F() local 286 ASSERT_TRUE(infobar != NULL); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/translate/ |
D | translate_manager_browsertest.cc | 162 InfoBarDelegate* infobar = GetTranslateInfoBar(); in CloseTranslateInfoBar() local 163 if (!infobar) in CloseTranslateInfoBar() 165 infobar->InfoBarDismissed(); // Simulates closing the infobar. in CloseTranslateInfoBar() 185 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in DenyTranslation() local 186 if (!infobar) in DenyTranslation() 188 infobar->TranslationDeclined(); in DenyTranslation() 424 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); in TEST_F() local 425 ASSERT_TRUE(infobar != NULL); in TEST_F() 427 infobar->infobar_type()); in TEST_F() 431 infobar->Translate(); in TEST_F() [all …]
|
/external/chromium/chrome/browser/ui/views/infobars/ |
D | infobar_container.cc | 32 InfoBar* infobar = infobars_.front(); in ChangeTabContents() local 38 infobar->set_container(NULL); in ChangeTabContents() 39 RemoveInfoBar(infobar); in ChangeTabContents() 71 InfoBar* infobar = *i; in GetVerticalOverlap() local 72 next_infobar_y -= infobar->arrow_height(); in GetVerticalOverlap() 74 next_infobar_y += infobar->total_height(); in GetVerticalOverlap() 100 void InfoBarContainer::RemoveInfoBar(InfoBar* infobar) { in RemoveInfoBar() argument 102 infobars_.end(), infobar)); in RemoveInfoBar() 104 PlatformSpecificRemoveInfoBar(infobar); in RemoveInfoBar() 152 InfoBar* infobar = *i; in RemoveInfoBar() local [all …]
|
D | translate_infobar_base.cc | 23 TranslateInfoBarBase* infobar = NULL; in CreateInfoBar() local 26 infobar = new BeforeTranslateInfoBar(this); in CreateInfoBar() 29 infobar = new AfterTranslateInfoBar(this); in CreateInfoBar() 33 infobar = new TranslateMessageInfoBar(this); in CreateInfoBar() 38 infobar_view_ = infobar; in CreateInfoBar() 39 return infobar; in CreateInfoBar()
|
D | infobar_container_view.cc | 47 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar) { in PlatformSpecificAddInfoBar() argument 48 AddChildView(static_cast<InfoBarView*>(infobar)); in PlatformSpecificAddInfoBar() 51 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { in PlatformSpecificRemoveInfoBar() argument 52 RemoveChildView(static_cast<InfoBarView*>(infobar)); in PlatformSpecificRemoveInfoBar()
|
D | infobar_container.h | 83 void RemoveInfoBar(InfoBar* infobar); 95 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar) = 0; 96 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) = 0; 117 void AddInfoBar(InfoBar* infobar,
|
/external/chromium/chrome/browser/ui/gtk/infobars/ |
D | infobar_container_gtk.cc | 33 InfoBar* infobar = reinterpret_cast<InfoBar*>( in AnimateClosingForDelegate() local 36 if (!infobar) { in AnimateClosingForDelegate() 41 if (delegate == infobar->delegate()) in AnimateClosingForDelegate() 42 infobar->AnimateClose(); in AnimateClosingForDelegate() 50 InfoBar* infobar = reinterpret_cast<InfoBar*>( in ClosingForDelegate() local 53 if (!infobar) { in ClosingForDelegate() 58 if (delegate == infobar->delegate()) in ClosingForDelegate() 59 infobar->Close(); in ClosingForDelegate() 66 InfoBar* infobar = reinterpret_cast<InfoBar*>( in SumAnimatingBarHeight() local 68 if (infobar->IsAnimating()) in SumAnimatingBarHeight() [all …]
|
/external/chromium_org/chrome/browser/infobars/ |
D | infobar_service.cc | 19 InfoBar* InfoBarService::AddInfoBar(scoped_ptr<InfoBar> infobar) { in AddInfoBar() argument 20 DCHECK(infobar); in AddInfoBar() 26 if ((*i)->delegate()->EqualsDelegate(infobar->delegate())) { in AddInfoBar() 27 DCHECK_NE((*i)->delegate(), infobar->delegate()); in AddInfoBar() 32 InfoBar* infobar_ptr = infobar.release(); in AddInfoBar() 43 void InfoBarService::RemoveInfoBar(InfoBar* infobar) { in RemoveInfoBar() argument 44 RemoveInfoBarInternal(infobar, true); in RemoveInfoBar() 98 InfoBar* infobar = infobars_[i - 1]; in NavigationEntryCommitted() local 99 if (infobar->delegate()->ShouldExpire(load_details)) in NavigationEntryCommitted() 100 RemoveInfoBar(infobar); in NavigationEntryCommitted() [all …]
|
D | infobar_container.cc | 65 InfoBar* infobar = *i; in GetVerticalOverlap() local 66 next_infobar_y -= infobar->arrow_height(); in GetVerticalOverlap() 68 next_infobar_y += infobar->total_height(); in GetVerticalOverlap() 92 void InfoBarContainer::RemoveInfoBar(InfoBar* infobar) { in RemoveInfoBar() argument 93 infobar->set_container(NULL); in RemoveInfoBar() 94 InfoBars::iterator i(std::find(infobars_.begin(), infobars_.end(), infobar)); in RemoveInfoBar() 96 PlatformSpecificRemoveInfoBar(infobar); in RemoveInfoBar() 152 InfoBar* infobar = infobars_.front(); in HideAllInfoBars() local 156 infobar->Hide(false); in HideAllInfoBars() 160 void InfoBarContainer::AddInfoBar(InfoBar* infobar, in AddInfoBar() argument [all …]
|
D | infobar_container.h | 77 void RemoveInfoBar(InfoBar* infobar); 91 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 98 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) = 0; 118 void AddInfoBar(InfoBar* infobar,
|
/external/chromium_org/chrome/browser/media/ |
D | webrtc_browsertest_base.cc | 80 InfoBar* infobar = GetUserMediaAndWaitForInfoBar(tab_contents, constraints); in GetUserMediaWithSpecificConstraintsAndAccept() local 81 infobar->delegate()->AsConfirmInfoBarDelegate()->Accept(); in GetUserMediaWithSpecificConstraintsAndAccept() 82 CloseInfoBarInTab(tab_contents, infobar); in GetUserMediaWithSpecificConstraintsAndAccept() 98 InfoBar* infobar = GetUserMediaAndWaitForInfoBar(tab_contents, constraints); in GetUserMediaWithSpecificConstraintsAndDeny() local 99 infobar->delegate()->AsConfirmInfoBarDelegate()->Cancel(); in GetUserMediaWithSpecificConstraintsAndDeny() 100 CloseInfoBarInTab(tab_contents, infobar); in GetUserMediaWithSpecificConstraintsAndDeny() 109 InfoBar* infobar = in GetUserMediaAndDismiss() local 111 infobar->delegate()->InfoBarDismissed(); in GetUserMediaAndDismiss() 112 CloseInfoBarInTab(tab_contents, infobar); in GetUserMediaAndDismiss() 172 InfoBar* infobar = details.ptr(); in OpenPageAndAcceptUserMedia() local [all …]
|
/external/chromium_org/chrome/browser/ui/android/infobars/ |
D | infobar_container_android.cc | 37 void InfoBarContainerAndroid::PlatformSpecificAddInfoBar(InfoBar* infobar, in PlatformSpecificAddInfoBar() argument 39 DCHECK(infobar); in PlatformSpecificAddInfoBar() 40 InfoBarAndroid* android_bar = static_cast<InfoBarAndroid*>(infobar); in PlatformSpecificAddInfoBar() 46 << infobar->delegate()->GetInfoBarType(); in PlatformSpecificAddInfoBar() 50 if (infobar->delegate()->AsAutoLoginInfoBarDelegate()) { in PlatformSpecificAddInfoBar() 53 infobar->delegate()->AsAutoLoginInfoBarDelegate()); in PlatformSpecificAddInfoBar() 79 void InfoBarContainerAndroid::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { in PlatformSpecificRemoveInfoBar() argument 80 InfoBarAndroid* android_infobar = static_cast<InfoBarAndroid*>(infobar); in PlatformSpecificRemoveInfoBar()
|
D | auto_login_infobar_delegate_android.cc | 86 if (!infobar()->owner()) in LoginSuccess() 93 infobar()->RemoveSelf(); in LoginSuccess() 102 if (!infobar()->owner()) in LoginFailed() 109 infobar()->owner(), IDR_INFOBAR_WARNING, in LoginFailed() 111 infobar()->RemoveSelf(); in LoginFailed() 115 infobar()->RemoveSelf(); in LoginDismiss()
|
/external/chromium_org/chrome/browser/ui/ |
D | hung_plugin_tab_helper.cc | 224 InfoBar* infobar; member 249 infobar(NULL), in PluginState() 286 if (i->second->infobar) in PluginCrashed() 287 infobar_service->RemoveInfoBar(i->second->infobar); in PluginCrashed() 307 if (found->second->infobar) in PluginHungStatusChanged() 308 infobar_service->RemoveInfoBar(found->second->infobar); in PluginHungStatusChanged() 328 InfoBar* infobar = content::Details<InfoBar::RemovedDetails>(details)->first; in Observe() local 332 if (state->infobar == infobar) { in Observe() 333 state->infobar = NULL; in Observe() 400 DCHECK(!found->second->infobar); in OnReshowTimer() [all …]
|
/external/chromium/chrome/browser/google/ |
D | google_url_tracker_unittest.cc | 257 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( in GetInfoBarShowingURL() local 259 return infobar->new_google_url(); in GetInfoBarShowingURL() 263 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( in AcceptGoogleURL() local 265 ASSERT_TRUE(infobar); in AcceptGoogleURL() 266 ASSERT_TRUE(infobar->google_url_tracker()); in AcceptGoogleURL() 267 infobar->google_url_tracker()->AcceptGoogleURL(infobar->new_google_url()); in AcceptGoogleURL() 271 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( in CancelGoogleURL() local 273 ASSERT_TRUE(infobar); in CancelGoogleURL() 274 ASSERT_TRUE(infobar->google_url_tracker()); in CancelGoogleURL() 275 infobar->google_url_tracker()->CancelGoogleURL(infobar->new_google_url()); in CancelGoogleURL() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/infobars/ |
D | infobar_container_controller.mm | 10 #include "chrome/browser/infobars/infobar.h" 88 - (void)addInfoBar:(InfoBarCocoa*)infobar 90 InfoBarController* controller = infobar->controller(); 102 - (void)removeInfoBar:(InfoBarCocoa*)infobar { 103 [infobar->controller() infobarWillHide]; 104 [self removeController:infobar->controller()]; 118 // last infobar and working our way to the front of the array. This 119 // way we ensure that the first infobar added shows up on top, with 127 frame.size.height = [controller infobar]->total_height(); 130 minY += NSHeight(frame) - [controller infobar]->arrow_height(); [all …]
|
D | confirm_infobar_controller_unittest.mm | 78 if ([self infobar]) 79 [self infobar]->CloseSoon(); 155 // Check to make sure the infobar message was set properly. 159 // Check that dismissing the infobar deletes the delegate. 169 // the infobar. 181 // the infobar. 191 // the infobar. 203 // the infobar. 213 // delegate. It should also close the infobar. 225 // delegate. It should not close the infobar.
|
D | infobar_container_cocoa.mm | 20 void InfoBarContainerCocoa::PlatformSpecificAddInfoBar(InfoBar* infobar, 22 InfoBarCocoa* infobar_cocoa = static_cast<InfoBarCocoa*>(infobar); 26 void InfoBarContainerCocoa::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { 27 InfoBarCocoa* infobar_cocoa = static_cast<InfoBarCocoa*>(infobar);
|
D | extension_infobar_controller.mm | 49 // Sets the image to be used in the button on the left side of the infobar. 83 // TODO(andybons): The infobar view implementations share a lot of the same 131 - (id)initWithInfoBar:(InfoBarCocoa*)infobar { 132 if ((self = [super initWithInfoBar:infobar])) { 184 // back to a tab with an extension infobar within it. The reason this is 189 [self infobar]->SetBarTargetHeight([self clampedExtensionViewHeight]); 195 // the parent infobar view matches the height of the extension's native view. 221 [self infobar]->SetBarTargetHeight([self clampedExtensionViewHeight]); 249 [self infobar]->OwnerCocoa()->web_contents()); 265 scoped_ptr<InfoBarCocoa> infobar( [all …]
|
D | infobar_container_controller_unittest.mm | 65 scoped_ptr<InfoBarCocoa> infobar(new InfoBarCocoa(confirm_delegate.Pass())); 67 [[ConfirmInfoBarController alloc] initWithInfoBar:infobar.get()]); 68 infobar->set_controller(controller); 69 [controller_ addInfoBar:infobar.get() position:0]; 72 [controller_ removeInfoBar:infobar.get()];
|
/external/chromium_org/chrome/browser/ui/gtk/infobars/ |
D | infobar_container_gtk.cc | 52 void InfoBarContainerGtk::PlatformSpecificAddInfoBar(InfoBar* infobar, in PlatformSpecificAddInfoBar() argument 54 InfoBarGtk* infobar_gtk = static_cast<InfoBarGtk*>(infobar); in PlatformSpecificAddInfoBar() 74 void InfoBarContainerGtk::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { in PlatformSpecificRemoveInfoBar() argument 75 InfoBarGtk* infobar_gtk = static_cast<InfoBarGtk*>(infobar); in PlatformSpecificRemoveInfoBar() 79 std::find(infobars_gtk_.begin(), infobars_gtk_.end(), infobar); in PlatformSpecificRemoveInfoBar() 96 InfoBarGtk* infobar) { in PaintInfobarBitsOn() argument 103 if (infobar) { in PaintInfobarBitsOn() 104 it = std::find(infobars_gtk_.begin(), infobars_gtk_.end(), infobar); in PaintInfobarBitsOn()
|
/external/chromium_org/chrome/browser/ui/views/infobars/ |
D | infobar_container_view.cc | 55 void InfoBarContainerView::PlatformSpecificAddInfoBar(InfoBar* infobar, in PlatformSpecificAddInfoBar() argument 57 AddChildViewAt(static_cast<InfoBarView*>(infobar), in PlatformSpecificAddInfoBar() 61 void InfoBarContainerView::PlatformSpecificRemoveInfoBar(InfoBar* infobar) { in PlatformSpecificRemoveInfoBar() argument 62 RemoveChildView(static_cast<InfoBarView*>(infobar)); in PlatformSpecificRemoveInfoBar()
|
/external/chromium/chrome/browser/ui/cocoa/infobars/ |
D | infobar_controller_unittest.mm | 35 // infobar completely when finished. For unittesting purposes, we create a mock 123 // Check that dismissing the infobar calls InfoBarClosed() on the delegate. 131 // delegate. It should also close the infobar. 141 // delegate. It should not close the infobar. 162 // Check to make sure the infobar message was set properly. 166 // Check that dismissing the infobar calls InfoBarClosed() on the delegate. 176 // the infobar. 188 // the infobar. 198 // the infobar. 210 // the infobar. [all …]
|
/external/chromium_org/chrome/browser/geolocation/ |
D | chrome_geolocation_permission_context_unittest.cc | 59 bool Contains(InfoBar* infobar) const; 85 bool ClosedInfoBarTracker::Contains(InfoBar* infobar) const { in Contains() 86 return removed_infobars_.count(infobar) != 0; in Contains() 261 InfoBar* infobar = infobar_service()->infobar_at(0); in TEST_F() local 263 infobar->delegate()->AsConfirmInfoBarDelegate(); in TEST_F() 266 infobar_service()->RemoveInfoBar(infobar); in TEST_F() 268 EXPECT_TRUE(closed_infobar_tracker_.Contains(infobar)); in TEST_F() 408 InfoBar* infobar = infobar_service()->infobar_at(0); in TEST_F() local 410 infobar->delegate()->AsConfirmInfoBarDelegate(); in TEST_F() 423 infobar_service()->RemoveInfoBar(infobar); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/plugins/ |
D | plugin_infobar_delegates.cc | 290 infobar()->RemoveSelf(); in OnlyWeakObserversLeft() 298 if ((message_ == message) || !infobar()->owner()) in ReplaceWithInfoBar() 301 infobar(), installer(), plugin_metadata_->Clone(), false, message); in ReplaceWithInfoBar() 332 InfoBar* infobar, in Replace() argument 337 DCHECK(infobar->owner()); in Replace() 338 infobar->owner()->ReplaceInfoBar(infobar, in Replace() 429 infobar()->RemoveSelf(); in OnlyWeakObserversLeft() 437 if ((message_ == message) || !infobar()->owner()) in ReplaceWithInfoBar() 439 Replace(infobar(), installer(), plugin_metadata_->Clone(), new_install_, in ReplaceWithInfoBar()
|