/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/infobars/ |
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.cc | 5 #include "chrome/browser/infobars/infobar.h" 15 InfoBar::InfoBar(scoped_ptr<InfoBarDelegate> delegate) 30 InfoBar::~InfoBar() { 35 SkColor InfoBar::GetTopColor(InfoBarDelegate::Type infobar_type) { 45 SkColor InfoBar::GetBottomColor(InfoBarDelegate::Type infobar_type) { 54 void InfoBar::SetOwner(InfoBarService* owner) { 61 void InfoBar::Show(bool animate) { 71 void InfoBar::Hide(bool animate) [all...] |
infobar_container.h | 16 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...] |
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...] |
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...] |
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...] |
/external/chromium/chrome/browser/ui/views/infobars/ |
infobar_container_view.h | 26 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar) OVERRIDE; 27 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
|
infobar.cc | 5 #include "chrome/browser/ui/views/infobars/infobar.h" 13 InfoBar::InfoBar(InfoBarDelegate* delegate) 26 InfoBar::~InfoBar() { 29 void InfoBar::Show(bool animate) { 38 void InfoBar::Hide(bool animate) { 48 void InfoBar::SetArrowTargetHeight(int height) { 58 void InfoBar::AnimationProgressed(const ui::Animation* animation) { 62 void InfoBar::RemoveInfoBar() [all...] |
infobar_container.h | 16 class InfoBar; 34 // 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 76 // will notify us back and cause us to close the InfoBar. This is called from 77 // the InfoBar's close button handler. 80 // Called by |infobar| to request that it be removed from the container, as it 81 // is about to delete itself. At this point, |infobar| should already b [all...] |
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_gtk.cc | 20 extern const int InfoBar::kInfoBarHeight = 37; 24 // Pixels between infobar elements. 34 const int InfoBar::kEndOfLabelSpacing = 6; 35 const int InfoBar::kButtonButtonSpacing = 3; 37 InfoBar::InfoBar(InfoBarDelegate* delegate) 80 // We store a pointer back to |this| so we can refer to it from the infobar 85 InfoBar::~InfoBar() { 88 GtkWidget* InfoBar::widget() [all...] |
link_infobar_gtk.h | 15 // An infobar that shows a string with an embedded link. 16 class LinkInfoBarGtk : public InfoBar {
|
link_infobar_gtk.cc | 12 InfoBar* LinkInfoBarDelegate::CreateInfoBar() { 19 : InfoBar(delegate) {
|
/external/chromium_org/chrome/browser/ui/android/infobars/ |
infobar_android.cc | 11 #include "chrome/browser/infobars/infobar.h" 17 // InfoBar -------------------------------------------------------------------- 19 // Static constants defined in infobar.h. We don't really use them for anything 21 const int InfoBar::kSeparatorLineHeight = 1; 22 const int InfoBar::kDefaultArrowTargetHeight = 9; 23 const int InfoBar::kMaximumArrowTargetHeight = 24; 24 const int InfoBar::kDefaultArrowTargetHalfWidth = kDefaultArrowTargetHeight; 25 const int InfoBar::kMaximumArrowTargetHalfWidth = 14; 26 const int InfoBar::kDefaultBarTargetHeight = 36; 32 : InfoBar(delegate.Pass()) [all...] |
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/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/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);
|
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;
|
/external/chromium_org/chrome/browser/ui/cocoa/infobars/ |
infobar_container_cocoa.h | 22 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 24 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
|
/external/chromium_org/chrome/browser/ui/views/infobars/ |
infobar_container_view.h | 28 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 30 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE;
|
infobar_background.cc | 7 #include "chrome/browser/infobars/infobar.h" 16 top_color_(InfoBar::GetTopColor(infobar_type)), 17 bottom_color_(InfoBar::GetBottomColor(infobar_type)) { 34 paint.setStrokeWidth(SkIntToScalar(InfoBar::kSeparatorLineHeight)); 39 InfoBarView* infobar = static_cast<InfoBarView*>(view); local 41 canvas_skia->drawPath(infobar->fill_path(), paint); 51 canvas_skia->drawPath(infobar->stroke_path(), paint); 55 canvas->FillRect(gfx::Rect(0, view->height() - InfoBar::kSeparatorLineHeight, 56 view->width(), InfoBar::kSeparatorLineHeight),
|
/external/chromium_org/chrome/browser/ui/gtk/infobars/ |
infobar_container_gtk.h | 15 class InfoBar; 29 // drawing of infobar arrows on other widgets. 49 // the InfoBar's close button handler. 59 // Paints parts of infobars that aren't inside the infobar's widget. This 61 // toolbars. All infobars starting from |infobar| (NULL for the first) to the 65 InfoBarGtk* infobar); 69 virtual void PlatformSpecificAddInfoBar(InfoBar* infobar, 71 virtual void PlatformSpecificRemoveInfoBar(InfoBar* infobar) OVERRIDE [all...] |
/external/chromium/chrome/browser/tab_contents/ |
infobar_delegate.h | 16 class InfoBar; 23 // An interface implemented by objects wishing to control an InfoBar. 24 // Implementing this interface is not sufficient to use an InfoBar, since it 25 // does not map to a specific InfoBar type. Instead, you must implement either 27 // delegate for your own InfoBar variety. 33 // you need to consider the fact that more than one InfoBar instance can exist 35 // ever fully show one infobar (they don't stack). The dual-references occur 36 // because a second InfoBar can be added while the first one is in the process 40 // fatal consequences for the InfoBar that was in the process of opening (or is 47 // The type of the infobar. It controls its appearance, such as its backgroun [all...] |