/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 …]
|
D | translate_manager.cc | 459 TranslateInfoBarDelegate* infobar = TranslateInfoBarDelegate::CreateDelegate( in TranslatePage() local 462 if (!infobar) { in TranslatePage() 469 ShowInfoBar(tab_contents, infobar); in TranslatePage() 558 TranslateInfoBarDelegate* infobar; in PageTranslated() local 560 infobar = TranslateInfoBarDelegate::CreateErrorDelegate(details->error_type, in PageTranslated() 567 infobar = TranslateInfoBarDelegate::CreateErrorDelegate( in PageTranslated() 571 infobar = TranslateInfoBarDelegate::CreateDelegate( in PageTranslated() 575 ShowInfoBar(tab, infobar); in PageTranslated() 642 TranslateInfoBarDelegate* infobar) { in ShowInfoBar() argument 644 infobar->UpdateBackgroundAnimation(old_infobar); in ShowInfoBar() [all …]
|
D | translate_manager.h | 147 void ShowInfoBar(TabContents* tab, TranslateInfoBarDelegate* infobar);
|
/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,
|
D | infobar_background.cc | 60 InfoBarView* infobar = static_cast<InfoBarView*>(view); in Paint() local 62 canvas_skia->drawPath(*infobar->fill_path(), paint); in Paint() 72 canvas_skia->drawPath(*infobar->stroke_path(), paint); in Paint()
|
D | infobar_container_view.h | 26 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar) OVERRIDE; 27 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
|
/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 …]
|
D | translate_infobar_base_gtk.cc | 222 TranslateInfoBarBase* infobar = NULL; in CreateInfoBar() local 225 infobar = new BeforeTranslateInfoBar(this); in CreateInfoBar() 228 infobar = new AfterTranslateInfoBar(this); in CreateInfoBar() 232 infobar = new TranslateMessageInfoBar(this); in CreateInfoBar() 237 infobar->Init(); in CreateInfoBar() 238 return infobar; in CreateInfoBar()
|
D | infobar_container_gtk.h | 69 void UpdateToolbarInfoBarState(InfoBar* infobar, bool animate);
|
/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 …]
|
D | google_url_tracker.cc | 32 InfoBarDelegate* infobar = new GoogleURLTrackerInfoBarDelegate(tab_contents, in CreateInfobar() local 34 tab_contents->AddInfoBar(infobar); in CreateInfobar() 35 return infobar; in CreateInfobar()
|
/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 …]
|
D | infobar_controller.mm | 14 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 81 // Asks the container controller to remove the infobar for this delegate. This 82 // call will trigger a notification that starts the infobar animating closed. 86 // notifying the InfoBarDelegate that the infobar was closed and removing the 87 // infobar from its container, if necessary. 194 // notify the delegate that the infobar was closed. 257 // TODO(rohitrao): This method can be called even if the infobar has already 259 // so that inner event loops don't cause us to try and remove the infobar 269 // Notify the delegate that the infobar was closed. The delegate may delete 293 // various derived infobar classes, however the class hierarchy itself could [all …]
|
D | infobar_container_controller.mm | 9 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 183 scoped_ptr<InfoBar> infobar(delegate->CreateInfoBar()); 184 InfoBarController* controller = infobar->controller(); 230 // last infobar and working our way to the front of the array. This 231 // way we ensure that the first infobar added shows up on top, with
|
/external/chromium/chrome/browser/download/ |
D | download_request_infobar_delegate_unittest.cc | 20 ConfirmInfoBarDelegate* infobar() { in infobar() function in MockTabDownloadState 74 state.infobar()->Accept(); in TEST() 80 state.infobar()->Cancel(); in TEST()
|
/external/chromium/chrome/browser/ui/cocoa/translate/ |
D | translate_infobar_unittest.mm | 14 #import "chrome/browser/ui/cocoa/infobars/infobar.h" 100 scoped_ptr<InfoBar> infobar( 104 infobar->controller())); 211 // Check that the infobar lays itself out correctly when instantiated in 225 // Verify that the infobar shows the "Always translate this language" button 240 // Verify that the infobar shows the "Never translate this language" button
|
D | translate_infobar_base.mm | 14 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 68 // If the superview is the infobar view, then subtract out the anti-spoof 69 // height so that the content is centered in the content area of the infobar, 79 // Creates a label control in the style we need for the translate infobar's 158 // Set the infobar background gradient. 277 // Step 1: remove all controls from the infobar so we have a clean slate. 413 // Set infobar background color. 558 // Danger Will Robinson! : This call can release the infobar (e.g. invoking
|
/external/chromium/chrome/browser/autofill/ |
D | autofill_metrics_unittest.cc | 859 AutofillCCInfoBarDelegate* infobar; in TEST_F() local 865 infobar = new AutofillCCInfoBarDelegate(contents(), in TEST_F() 875 EXPECT_TRUE(infobar->Accept()); in TEST_F() 876 infobar->InfoBarClosed(); in TEST_F() 881 infobar = new AutofillCCInfoBarDelegate(contents(), in TEST_F() 890 EXPECT_TRUE(infobar->Cancel()); in TEST_F() 891 infobar->InfoBarClosed(); in TEST_F() 896 infobar = new AutofillCCInfoBarDelegate(contents(), in TEST_F() 905 infobar->InfoBarDismissed(); in TEST_F() 906 infobar->InfoBarClosed(); in TEST_F() [all …]
|
D | autofill_browsertest.cc | 439 TranslateInfoBarDelegate* infobar = browser()->GetSelectedTabContents()-> in IN_PROC_BROWSER_TEST_F() local 442 ASSERT_TRUE(infobar != NULL); in IN_PROC_BROWSER_TEST_F() 443 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, infobar->type()); in IN_PROC_BROWSER_TEST_F() 446 infobar->Translate(); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | browser_window_controller_unittest.mm | 173 // Verifies that the toolbar, infobar, tab content area, and download shelf 179 NSRect infobar = [[controller infoBarContainerView] frame]; 185 EXPECT_EQ(NSMaxY(contentArea), NSMinY(infobar)); 190 EXPECT_EQ(NSMaxY(infobar), NSMinY(bookmark)); 194 EXPECT_EQ(NSMaxY(infobar), NSMinY(toolbar)); 335 NSView* infobar = [controller_ infoBarContainerView]; 356 // Expand the infobar to 60px and recheck 357 [controller_ resizeView:infobar newHeight:60]; 368 // Shrink the infobar to 0px and toolbar to 39px and recheck 369 [controller_ resizeView:infobar newHeight:0]; [all …]
|
/external/chromium/chrome/browser/ui/cocoa/extensions/ |
D | extension_infobar_controller.mm | 15 #include "chrome/browser/ui/cocoa/infobars/infobar.h" 45 // 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 199 // back to a tab with an extension infobar within it. The reason this is 215 // the parent infobar view matches the height of the extension's native view.
|
D | extension_installed_bubble_bridge.mm | 22 // page action icons, show an infobar instead of a popup bubble. 66 // surface to display for this window, launch infobar instead of popup
|