/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; 9 * A simple infobar that contains a message and a close icon on the right side. 13 * TODO(newt): merge this into InfoBar.java 15 public class MessageInfoBar extends InfoBar { 18 * Creates an infobar with a message and a close button. 19 * @param title the text displayed in the infobar 26 * Creates an infobar with an icon, a message and a close button. 27 * @param listener A listener to be notified when the infobar is dismissed, or null. 28 * @param iconResourceId The icon to display in the infobar, or 0 if no icon should be shown. 29 * @param title The text to display in the infobar [all...] |
DataReductionProxyInfoBarDelegate.java | 5 package org.chromium.chrome.browser.infobar; 16 * Launches the {@link InfoBar}. 17 * @param webContents The {@link WebContents} in which to launch the {@link InfoBar}. 33 * @param nativeInfoBar Pointer to the C++ InfoBar corresponding to the Java InfoBar. 34 * @param enumeratedIconId ID corresponding to the icon that will be shown for the InfoBar. 39 InfoBar showDataReductionProxyInfoBar(long nativeInfoBar, int enumeratedIconId) { 41 DataReductionProxyInfoBar infoBar = new DataReductionProxyInfoBar( 43 return infoBar;
|
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, 39 ConfirmInfoBar infoBar = new ConfirmInfoBar(nativeInfoBar, null, drawableId, message, 41 return infoBar;
|
SavePasswordInfoBarDelegate.java | 5 package org.chromium.chrome.browser.infobar; 24 * @param nativeInfoBar Pointer to the C++ InfoBar corresponding to the Java InfoBar. 25 * @param enumeratedIconId ID corresponding to the icon that will be shown for the InfoBar. 28 * @param message Message to display to the user indicating what the InfoBar is for. 33 InfoBar showSavePasswordInfoBar(long nativeInfoBar, int enumeratedIconId, String message, 36 SavePasswordInfoBar infoBar = new SavePasswordInfoBar( 38 return infoBar; 45 * @param nativeInfoBar The native infobar pointer.
|
SubPanelListener.java | 4 package org.chromium.chrome.browser.infobar; 7 * A listener to interact with the different subpanels of the translate infobar. 13 * @param action one of the action types in {@code InfoBar}
|
/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/components/infobars/core/ |
infobar_manager.h | 20 class InfoBar; 26 // Observer class for infobar events. 29 virtual void OnInfoBarAdded(InfoBar* infobar); 30 virtual void OnInfoBarRemoved(InfoBar* infobar, bool animate); 31 virtual void OnInfoBarReplaced(InfoBar* old_infobar, 32 InfoBar* new_infobar); 44 // Adds the specified |infobar|, which already owns a delegate. 46 // If infobars are disabled for this tab or the tab already has an infobar [all...] |
infobar_android.cc | 5 #include "components/infobars/core/infobar.h" 7 // Static constants defined in infobar.h. We don't really use them for anything 9 const int infobars::InfoBar::kSeparatorLineHeight = 1; 10 const int infobars::InfoBar::kDefaultArrowTargetHeight = 9; 11 const int infobars::InfoBar::kMaximumArrowTargetHeight = 24; 12 const int infobars::InfoBar::kDefaultArrowTargetHalfWidth = 14 const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14; 15 const int infobars::InfoBar::kDefaultBarTargetHeight = 36;
|
infobar_manager.cc | 8 #include "components/infobars/core/infobar.h" 16 void InfoBarManager::Observer::OnInfoBarAdded(InfoBar* infobar) { 19 void InfoBarManager::Observer::OnInfoBarRemoved(InfoBar* infobar, 23 void InfoBarManager::Observer::OnInfoBarReplaced(InfoBar* old_infobar, 24 InfoBar* new_infobar) { 33 InfoBar* InfoBarManager::AddInfoBar(scoped_ptr<InfoBar> infobar) { 120 InfoBar* infobar = infobars_[i - 1]; local [all...] |
infobar_container.cc | 11 #include "components/infobars/core/infobar.h" 23 top_arrow_target_height_(InfoBar::kDefaultArrowTargetHeight) { 39 InfoBar* infobar = infobars_.front(); local 40 // Inform the infobar that it's hidden. If it was already closing, this 41 // deletes it. Otherwise, this ensures the infobar will be deleted if it's 43 infobar->Hide(false); 52 // OnInfoBarStateChanged() for each infobar. 69 InfoBar* infobar = *i local [all...] |
infobar_container.h | 17 class InfoBar; 33 // 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. 77 void RemoveInfoBar(InfoBar* infobar); [all...] |
confirm_infobar_delegate.h | 13 class InfoBar; 28 // Returns the InfoBar type to be displayed for the InfoBar. 31 // Returns the message string to be displayed for the InfoBar. 34 // Returns the buttons to be shown for this InfoBar. 46 // infobar is then immediately closed. Subclasses MUST NOT return true if in 47 // handling this call something triggers the infobar to begin closing. 51 // the infobar is then immediately closed. Subclasses MUST NOT return true if 52 // in handling this call something triggers the infobar to begin closing. 61 // when the link was clicked). If this function returns true, the infobar i [all...] |
infobar.h | 22 // InfoBar is a cross-platform base class for an infobar "view" (in the MVC 26 // create a platform-specific subclass of InfoBar to own it, and then call 27 // InfoBarManager::AddInfoBar() to give it ownership of the infobar. 28 // During its life, the InfoBar may be shown and hidden as the owning tab is 30 // will instruct the InfoBar to close itself. At this point, the InfoBar will 34 // Thus, InfoBarDelegate and InfoBar implementations can assume they share 37 class InfoBar : public gfx::AnimationDelegate { 39 // These are the types passed as Details for infobar-related notifications [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_org/components/infobars/test/ |
infobar_test.cc | 8 #include "components/infobars/core/infobar.h" 18 const int infobars::InfoBar::kSeparatorLineHeight = 1; 19 const int infobars::InfoBar::kDefaultArrowTargetHeight = 9; 20 const int infobars::InfoBar::kMaximumArrowTargetHeight = 24; 21 const int infobars::InfoBar::kDefaultArrowTargetHalfWidth = 23 const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14; 24 const int infobars::InfoBar::kDefaultBarTargetHeight = 36; 28 // ConfirmInfoBarDelegate::CreateInfoBar() return a non-NULL infobar. 29 scoped_ptr<infobars::InfoBar> ConfirmInfoBarDelegate::CreateInfoBar( 31 return scoped_ptr<infobars::InfoBar>(new infobars::InfoBar [all...] |
/external/chromium_org/chrome/browser/ui/cocoa/infobars/ |
infobar_container_cocoa.mm | 21 infobars::InfoBar* infobar, 23 InfoBarCocoa* infobar_cocoa = static_cast<InfoBarCocoa*>(infobar); 28 infobars::InfoBar* infobar) { 29 InfoBarCocoa* infobar_cocoa = static_cast<InfoBarCocoa*>(infobar);
|
infobar_cocoa.mm | 9 const int infobars::InfoBar::kSeparatorLineHeight = 1; 10 const int infobars::InfoBar::kDefaultArrowTargetHeight = 11; 11 const int infobars::InfoBar::kMaximumArrowTargetHeight = 24; 12 const int infobars::InfoBar::kDefaultArrowTargetHalfWidth = 14 const int infobars::InfoBar::kMaximumArrowTargetHalfWidth = 14; 15 const int infobars::InfoBar::kDefaultBarTargetHeight = 36; 18 : infobars::InfoBar(delegate.Pass()),
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/infobar/ |
InfoBarTest.java | 5 package org.chromium.chrome.browser.infobar; 50 * Verify PopUp InfoBar. Only basic triggering verified due to lack of tabs 58 assertTrue("InfoBar not added", mListener.addInfoBarAnimationFinished()); 60 List<InfoBar> infoBars = getActivity().getActiveTab().getInfoBarContainer().getInfoBars(); 61 assertEquals("Wrong infobar count", 1, infoBars.size()); 65 assertTrue("InfoBar not removed.", mListener.removeInfoBarAnimationFinished()); 66 assertEquals("Wrong infobar count", 0, infoBars.size()); 68 // A second load should not show the infobar. 70 assertFalse("InfoBar added when it should not", mListener.addInfoBarAnimationFinished()); 74 * Verify Geolocation creates an InfoBar [all...] |
/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/infobars/ |
infobar_service.cc | 11 #include "components/infobars/core/infobar.h" 19 using infobars::InfoBar; 53 content::WebContents* InfoBarService::WebContentsFromInfoBar(InfoBar* infobar) { 54 if (!infobar || !infobar->owner()) 57 static_cast<InfoBarService*>(infobar->owner()); 77 void InfoBarService::NotifyInfoBarAdded(InfoBar* infobar) { 78 InfoBarManager::NotifyInfoBarAdded(infobar); [all...] |
/external/chromium_org/chrome/browser/ui/android/infobars/ |
infobar_container_android.h | 42 virtual void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar, 44 virtual void PlatformSpecificRemoveInfoBar(infobars::InfoBar* infobar) 47 infobars::InfoBar* old_infobar, 48 infobars::InfoBar* new_infobar) OVERRIDE; 54 // We're owned by the java infobar, need to use a weak ref so it can destroy
|
infobar_android.h | 14 #include "components/infobars/core/infobar.h" 22 class InfoBarAndroid : public infobars::InfoBar { 26 // InfoBar.java! 29 // Confirm infobar 32 // Translate infobar 40 // InfoBar: 47 // Tells the Java-side counterpart of this InfoBar to point to the replacement 48 // InfoBar instead of this one. 64 // Acquire the java infobar from a different one. This is used to do in-place
|