HomeSort by relevance Sort by last modified time
    Searched refs:InfoBar (Results 1 - 25 of 103) sorted by null

1 2 3 4 5

  /external/chromium_org/components/infobars/core/
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.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_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...]
infobar.cc 5 #include "components/infobars/core/infobar.h"
17 InfoBar::InfoBar(scoped_ptr<InfoBarDelegate> delegate)
32 InfoBar::~InfoBar() {
37 SkColor InfoBar::GetTopColor(InfoBarDelegate::Type infobar_type) {
47 SkColor InfoBar::GetBottomColor(InfoBarDelegate::Type infobar_type) {
56 void InfoBar::SetOwner(InfoBarManager* owner) {
63 void InfoBar::Show(bool animate) {
73 void InfoBar::Hide(bool animate)
    [all...]
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.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...]
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...]
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_delegate.h 33 class InfoBar;
35 // An interface implemented by objects wishing to control an InfoBar.
36 // Implementing this interface is not sufficient to use an InfoBar, since it
37 // does not map to a specific InfoBar type. Instead, you must implement
39 // InfoBar variety.
42 // The type of the infobar. It controls its appearance, such as its background
71 // Value to use when the InfoBar has no icon to show.
74 // Called when the InfoBar that owns this delegate is being destroyed. At
88 // Returns true if the InfoBar should be closed automatically after the page
95 // Called when the user clicks on the close button to dismiss the infobar
136 InfoBar* infobar() { return infobar_; } function in class:infobars::InfoBarDelegate
    [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/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);
ConfirmInfoBar.java 5 package org.chromium.chrome.browser.infobar;
8 * An infobar that presents the user with several buttons.
10 * TODO(newt): merge this into InfoBar.java.
12 public class ConfirmInfoBar extends InfoBar {
48 int action = isPrimaryButton ? InfoBar.ACTION_TYPE_OK : InfoBar.ACTION_TYPE_CANCEL;
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...]
TranslateAlwaysPanel.java 4 package org.chromium.chrome.browser.infobar;
11 * Options panel shown in the after translate infobar.
40 mListener.onPanelClosed(InfoBar.ACTION_TYPE_NONE);
42 mListener.onPanelClosed(InfoBar.ACTION_TYPE_TRANSLATE_SHOW_ORIGINAL);
  /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_container_android.cc 13 #include "components/infobars/core/infobar.h"
37 infobars::InfoBar* infobar,
39 DCHECK(infobar);
40 InfoBarAndroid* android_bar = static_cast<InfoBarAndroid*>(infobar);
45 NOTIMPLEMENTED() << "CLANK: infobar type "
46 << infobar->delegate()->GetInfoBarType();
50 if (infobar->delegate()->AsAutoLoginInfoBarDelegate()) {
53 infobar->delegate()->AsAutoLoginInfoBarDelegate());
73 infobars::InfoBar* old_infobar
    [all...]
  /external/chromium_org/chrome/browser/ui/cocoa/infobars/
infobar_container_cocoa.h 22 virtual void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
25 infobars::InfoBar* infobar) OVERRIDE;
  /external/chromium_org/chrome/browser/ui/views/infobars/
infobar_container_view.h 28 virtual void PlatformSpecificAddInfoBar(infobars::InfoBar* infobar,
31 infobars::InfoBar* infobar) OVERRIDE;
infobar_background.cc 8 #include "components/infobars/core/infobar.h"
17 top_color_(infobars::InfoBar::GetTopColor(infobar_type)),
18 bottom_color_(infobars::InfoBar::GetBottomColor(infobar_type)) {
35 paint.setStrokeWidth(SkIntToScalar(infobars::InfoBar::kSeparatorLineHeight));
40 InfoBarView* infobar = static_cast<InfoBarView*>(view); local
42 canvas_skia->drawPath(infobar->fill_path(), paint);
52 canvas_skia->drawPath(infobar->stroke_path(), paint);
57 gfx::Rect(0, view->height() - infobars::InfoBar::kSeparatorLineHeight,
58 view->width(), infobars::InfoBar::kSeparatorLineHeight),
  /external/chromium_org/components/translate/core/browser/
translate_client.h 20 class InfoBar;
51 // Returns a translate infobar that owns |delegate|.
52 virtual scoped_ptr<infobars::InfoBar> CreateInfoBar(
  /external/chromium_org/chrome/browser/infobars/
infobar_service.h 21 class InfoBar;
25 // It manages the infobar notifications and responds to navigation events.
38 infobars::InfoBar* infobar);
56 // TODO(droger): Remove these functions once infobar notifications are
58 virtual void NotifyInfoBarAdded(infobars::InfoBar* infobar) OVERRIDE;
59 virtual void NotifyInfoBarRemoved(infobars::InfoBar* infobar,
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/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/chrome/browser/supervised_user/
supervised_user_navigation_observer.h 25 class InfoBar;
34 // Sets the specific infobar as dismissed.
68 infobars::InfoBar* warn_infobar_;

Completed in 254 milliseconds

1 2 3 4 5