/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
InfoBarListeners.java | 5 package org.chromium.chrome.browser.infobar; 8 * A collection of listeners for different infobar events. 13 * Called whenever an infobar is dismissed, either manually or as a side 14 * effect of a navigation, replacing the infobar... 17 void onInfoBarDismissed(InfoBar infoBar); 22 * Called whenever an infobar's confirm or cancel button is clicked. 25 ConfirmInfoBar infoBar, boolean confirm);
|
MessageInfoBar.java | 5 package org.chromium.chrome.browser.infobar; 12 * A simple infobar that contains a message and a close icon on the right side. 16 public class MessageInfoBar extends InfoBar { 20 * Creates and returns an infobar with a white background and a close button on the right. 21 * @param title the text displayed in the infobar 22 * @return the infobar. 29 * Creates and returns an infobar with a white background and a close button on the right. 31 * @param title the text displayed in the infobar 32 * @return the infobar. 39 * Creates a warning infobar, with a yellow background and a warning icon on the right [all...] |
ConfirmInfoBarDelegate.java | 5 package org.chromium.chrome.browser.infobar; 25 * @param nativeInfoBar Pointer to the C++ InfoBar corresponding to the Java InfoBar. 26 * @param enumeratedIconId ID corresponding to the icon that will be shown for the InfoBar. 29 * @param message Message to display to the user indicating what the InfoBar is for. 35 InfoBar showConfirmInfoBar(long nativeInfoBar, int enumeratedIconId, String message, 41 ConfirmInfoBar infoBar = new ConfirmInfoBar(nativeInfoBar, null, 42 InfoBar.BACKGROUND_TYPE_WARNING, drawableId, message, linkText, buttonOk, 44 return infoBar;
|
InfoBarContainer.java | 5 package org.chromium.chrome.browser.infobar; 33 * When initiated from native code, special code is needed to keep the Java and native infobar in 48 // InfoBar being animated. 49 public InfoBar target; 57 public InfoBarTransitionInfo(InfoBar bar, View view, int type) { 76 // Whether the infobar are shown on top (below the location bar) or at the bottom of the screen. 80 private final ArrayList<InfoBar> mInfoBars = new ArrayList<InfoBar>(); 117 // Chromium's InfoBarContainer may add an InfoBar immediately during this initialization 186 // When infobars are on top, the new infobar Z-order is greater than the previous infobar [all...] |
/external/chromium-trace/trace-viewer/src/ui/ |
info_bar_test.js | 11 var infoBar = new ui.InfoBar(); 12 infoBar.message = 'This is an info'; 13 infoBar.visible = true; 14 this.addHTMLOutput(infoBar); 18 var infoBar = new ui.InfoBar(); 19 infoBar.visible = true; 20 infoBar.message = 'This is an info bar with buttons'; 22 var button = infoBar.addButton('More info...', function() [all...] |
/external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/ |
InfoBarUtil.java | 11 import org.chromium.chrome.browser.infobar.InfoBar; 19 * Finds, and optionally clicks, the button with the specified ID in the given InfoBar. 23 InfoBar infoBar, int buttonId, boolean click) { 24 View button = infoBar.getContentWrapper().findViewById(buttonId); 31 * Checks if the primary button exists on the InfoBar. 35 InfoBar infoBar) { 36 return findButton(test, infoBar, R.id.button_primary, false) [all...] |
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/translate/ |
TranslateInfoBarTest.java | 9 import org.chromium.chrome.browser.infobar.InfoBar; 10 import org.chromium.chrome.browser.infobar.InfoBarContainer; 20 * Tests for the translate infobar, assumes it runs on a system with language 48 List<InfoBar> infoBars = getActivity().getActiveTab().getInfoBarContainer().getInfoBars(); 50 assertTrue("InfoBar not opened.", mListener.addInfoBarAnimationFinished()); 51 InfoBar infoBar = infoBars.get(0); 52 assertTrue(InfoBarUtil.hasPrimaryButton(this, infoBar)); 53 assertTrue(InfoBarUtil.hasSecondaryButton(this, infoBar)); [all...] |
/external/chromium/chrome/browser/ui/cocoa/infobars/ |
infobar.h | 17 // have, but since there is no pre-defined InfoBar interface, it is 21 // Callers should delete the returned InfoBar immediately after 22 // calling CreateInfoBar(), as the returned InfoBar* object is not 25 // scoped_ptr<InfoBar> infobar(delegate->CreateInfoBar()); 26 // InfoBarController* controller = infobar->controller(); 28 // // deleted later. |infobar| will be deleted automatically. 30 class InfoBar { 32 InfoBar(InfoBarController* controller) { 42 // Pointer to the infobar controller. Is never null [all...] |
/external/chromium_org/chrome/browser/ui/cocoa/infobars/ |
infobar_cocoa.mm | 9 const int InfoBar::kSeparatorLineHeight = 1; 10 const int InfoBar::kDefaultArrowTargetHeight = 11; 11 const int InfoBar::kMaximumArrowTargetHeight = 24; 12 const int InfoBar::kDefaultArrowTargetHalfWidth = kDefaultArrowTargetHeight; 13 const int InfoBar::kMaximumArrowTargetHalfWidth = 14; 14 const int InfoBar::kDefaultBarTargetHeight = 36; 17 : InfoBar(delegate.Pass()),
|
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);
|
/external/chromium/chrome/browser/ui/views/infobars/ |
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...] |
/external/chromium/chrome/browser/ui/gtk/infobars/ |
infobar_gtk.h | 25 class InfoBar : public SlideAnimatorGtk::Delegate, 29 explicit InfoBar(InfoBarDelegate* delegate); 30 virtual ~InfoBar(); 34 // Get the top level native GTK widget for this infobar. 38 // InfoBar is added to the view hierarchy. 41 // Starts animating the InfoBar open. 44 // Opens the InfoBar immediately. 47 // Starts animating the InfoBar closed. It will not be closed until the 51 // Closes the InfoBar immediately and removes it from its container. Notifies 52 // the delegate that it has closed. The InfoBar is deleted after this functio [all...] |
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/browser/infobars/ |
infobar_container.cc | 13 #include "chrome/browser/infobars/infobar.h" 26 top_arrow_target_height_(InfoBar::kDefaultArrowTargetHeight) { 49 // OnInfoBarAnimated() for each infobar. 65 InfoBar* infobar = *i; local 66 next_infobar_y -= infobar->arrow_height(); 68 next_infobar_y += infobar->total_height(); 78 // line height, because the infobar arrow target heights are without-stroke. 80 std::max(height - InfoBar::kSeparatorLineHeight, 0), 81 InfoBar::kMaximumArrowTargetHeight) 152 InfoBar* infobar = infobars_.front(); local [all...] |
infobar_service.h | 14 class InfoBar; 24 // Adds the specified |infobar|, which already owns a delegate. 26 // If infobars are disabled for this tab or the tab already has an infobar 28 // InfoBarDelegate::EqualsDelegate(infobar->delegate()), |infobar| is deleted 31 // Returns the infobar if it was successfully added. 32 virtual InfoBar* AddInfoBar(scoped_ptr<InfoBar> infobar); 34 // Removes the specified |infobar|. This in turn may close immediately o [all...] |
infobar_service.cc | 8 #include "chrome/browser/infobars/infobar.h" 19 InfoBar* InfoBarService::AddInfoBar(scoped_ptr<InfoBar> infobar) { 20 DCHECK(infobar); 26 if ((*i)->delegate()->EqualsDelegate(infobar->delegate())) { 27 DCHECK_NE((*i)->delegate(), infobar->delegate()); 32 InfoBar* infobar_ptr = infobar.release(); 39 content::Details<InfoBar::AddedDetails>(infobar_ptr)) 98 InfoBar* infobar = infobars_[i - 1]; local [all...] |