/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...] |
infobar_delegate.h | 16 class InfoBar; 30 // An interface implemented by objects wishing to control an InfoBar. 31 // Implementing this interface is not sufficient to use an InfoBar, since it 32 // does not map to a specific InfoBar type. Instead, you must implement 34 // InfoBar variety. 37 // The type of the infobar. It controls its appearance, such as its background 51 // Value to use when the InfoBar has no icon to show. 54 // Called when the InfoBar that owns this delegate is being destroyed. At 68 // Returns true if the InfoBar should be closed automatically after the page 75 // Called when the user clicks on the close button to dismiss the infobar 123 InfoBar* infobar() { return infobar_; } function in class:InfoBarDelegate [all...] |
confirm_infobar_delegate.h | 12 class InfoBar; 26 // Returns the InfoBar type to be displayed for the InfoBar. 29 // Returns the message string to be displayed for the InfoBar. 32 // Return the buttons to be shown for this InfoBar. 43 // infobar is then immediately closed. Subclasses MUST NOT return true if in 44 // handling this call something triggers the infobar to begin closing. 48 // the infobar is then immediately closed. Subclasses MUST NOT return true if 49 // in handling this call something triggers the infobar to begin closing. 58 // when the link was clicked). If this function returns true, the infobar i [all...] |
infobar.h | 20 // InfoBar is a cross-platform base class for an infobar "view" (in the MVC 24 // create a platform-specific subclass of InfoBar to own it, and then call 25 // InfoBarService::AddInfoBar() to give it ownership of the infobar. 26 // During its life, the InfoBar may be shown and hidden as the owning tab is 28 // will instruct the InfoBar to close itself. At this point, the InfoBar will 32 // Thus, InfoBarDelegate and InfoBar implementations can assume they share 35 class InfoBar : public gfx::AnimationDelegate { 37 // These are the types passed as Details for infobar-related notifications [all...] |
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/ |
InfoBarTest.java | 5 package org.chromium.chrome.browser.infobar; 51 * Verify PopUp InfoBar. Only basic triggering verified due to lack of tabs 59 assertTrue("InfoBar not added", mListener.addInfoBarAnimationFinished()); 61 List<InfoBar> infoBars = getActivity().getActiveTab().getInfoBarContainer().getInfoBars(); 62 assertEquals("Wrong infobar count", 1, infoBars.size()); 66 assertTrue("InfoBar not removed.", mListener.removeInfoBarAnimationFinished()); 67 assertEquals("Wrong infobar count", 0, infoBars.size()); 69 // A second load should not show the infobar. 71 assertFalse("InfoBar added when it should not", mListener.addInfoBarAnimationFinished()); 75 * Verify Geolocation creates an InfoBar [all...] |
/external/chromium/chrome/common/extensions/docs/static/ |
experimental.infobars.html | 9 <img src="images/infobar.png" 11 alt="An infobar asking whether the user wants to translate the current page" /> 15 Use an infobar to tell the reader 17 When the user leaves the page for which the infobar is displayed, 18 Google Chrome automatically closes the infobar. 23 infobar using HTML. Because infobars are ordinary pages inside an extension, 35 a 16x16-pixel icon for display next to your infobar. 40 "name": "Andy's infobar extension",
|
/external/chromium_org/chrome/common/extensions/api/ |
infobars.json | 17 "description": "Shows an infobar in the specified tab. The infobar will be closed automatically when the tab navigates. Use window.close() to close the infobar before then.", 25 "description": "The tab id for the tab to display the infobar in." 29 "description": "The html file that contains the infobar." 33 "description": "The height (in pixels) of the infobar to show. If omitted, the default infobar height will be used.", 46 "name": "window", "$ref": "windows.Window", "description": "Contains details about the window in which the infobar was created."
|
/external/chromium_org/chrome/common/extensions/docs/templates/intros/ |
infobars.html | 8 <img src="{{static}}/images/infobar.png" 10 alt="An infobar asking whether the user wants to translate the current page" /> 14 Use an infobar to tell the reader 16 When the user leaves the page for which the infobar is displayed, 17 Google Chrome automatically closes the infobar. 22 infobar using HTML. Because infobars are ordinary pages inside an extension, 33 a 16x16-pixel icon for display next to your infobar. 39 "name": "Andy's infobar extension",
|
/external/chromium_org/chrome/browser/ui/android/infobars/ |
infobar_container_android.h | 42 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 44 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE; 45 virtual void PlatformSpecificReplaceInfoBar(InfoBar* old_infobar, 46 InfoBar* new_infobar) OVERRIDE; 52 // We're owned by the java infobar, need to use a weak ref so it can destroy
|
/external/chromium_org/ui/android/java/res/values/ |
dimens.xml | 18 <!-- Infobar dimensions --> 19 <!-- Text size of the InfoBar message. --> 21 <!-- Text size of text inside InfoBar buttons. --> 23 <!-- Minimum dimension (height or width) of the upper row of an InfoBar. --> 25 <!-- Margin between items in an InfoBar. --> 27 <!-- Left/right padding for infobar button text. --> 31 <!-- Dimension (height or width) of the InfoBar icon. -->
|