/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
ConfirmInfoBar.java | 5 package org.chromium.chrome.browser.infobar; 15 * An infobar that presents the user with 2 buttons (typically OK, Cancel). 61 // Construct text to be displayed on the infobar. 98 int action = isPrimaryButton ? InfoBar.ACTION_TYPE_OK : InfoBar.ACTION_TYPE_CANCEL;
|
TranslateOptions.java | 5 package org.chromium.chrome.browser.infobar;
|
AnimationHelper.java | 5 package org.chromium.chrome.browser.infobar; 25 * 1) Prep work is done for the InfoBar so that the View being animated in (if it exists) is 48 private final InfoBar mInfoBar; 61 * @param infoBar InfoBar that goes with the specified ContentWrapperView. 66 public AnimationHelper(InfoBarContainer container, ContentWrapperView target, InfoBar infoBar, 69 mInfoBar = infoBar; 94 * @return the InfoBar being animated. 96 public InfoBar getInfoBar() [all...] |
ContentWrapperView.java | 5 package org.chromium.chrome.browser.infobar; 31 * Once an InfoBar has been hidden and removed from the InfoBarContainer, it cannot be reused 40 private final InfoBar mInfoBar; 49 public ContentWrapperView(Context context, InfoBar infoBar, int backgroundType, View panel, 53 mInfoBar = infoBar; 60 if (backgroundType == InfoBar.BACKGROUND_TYPE_WARNING) { 78 // Add the InfoBar content. 94 * Calculates how tall the InfoBar boundary should be in pixels. 104 * @return the current View representing the InfoBar [all...] |
InfoBar.java | 5 package org.chromium.chrome.browser.infobar; 16 * The base class for all InfoBar classes. 18 * Make sure to use setExpireOnNavigation(false) if you want an infobar to be sticky. 20 public abstract class InfoBar implements InfoBarView { 21 private static final String TAG = "InfoBar"; 24 * Possible labels of all the infobar buttons. 31 // Confirm infobar 35 // Translate infobar 68 * @param listener Listens to when buttons have been clicked on the InfoBar. 72 public InfoBar(InfoBarListeners.Dismiss listener, int backgroundType, int iconDrawableId) [all...] |
TranslateInfoBar.java | 5 package org.chromium.chrome.browser.infobar; 20 * Java version of the translate infobar 88 * Based on the infobar and the button pressed figure out what action needs to happen. 91 int action = InfoBar.ACTION_TYPE_NONE; 96 ? InfoBar.ACTION_TYPE_TRANSLATE : InfoBar.ACTION_TYPE_CANCEL; 100 action = InfoBar.ACTION_TYPE_TRANSLATE_SHOW_ORIGINAL; 105 action = InfoBar.ACTION_TYPE_TRANSLATE; 197 // Close the sub panel and show the infobar again. 201 // Apply options and close the infobar [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...] |
/external/chromium/chrome/browser/autofill/ |
autofill_browsertest.cc | 439 TranslateInfoBarDelegate* infobar = browser()->GetSelectedTabContents()-> local 442 ASSERT_TRUE(infobar != NULL); 443 EXPECT_EQ(TranslateInfoBarDelegate::BEFORE_TRANSLATE, infobar->type()); 446 infobar->Translate();
|
autofill_metrics_unittest.cc | 859 AutofillCCInfoBarDelegate* infobar; local [all...] |
/external/chromium/chrome/browser/google/ |
google_url_tracker.cc | 32 InfoBarDelegate* infobar = new GoogleURLTrackerInfoBarDelegate(tab_contents, local 34 tab_contents->AddInfoBar(infobar); 35 return infobar;
|
google_url_tracker_unittest.cc | 70 virtual InfoBar* CreateInfoBar(); 86 InfoBar* TestInfoBarDelegate::CreateInfoBar() { 257 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( local 259 return infobar->new_google_url(); 263 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*>( local 265 ASSERT_TRUE(infobar); 266 ASSERT_TRUE(infobar->google_url_tracker()); 267 infobar->google_url_tracker()->AcceptGoogleURL(infobar->new_google_url()); 271 TestInfoBarDelegate* infobar = static_cast<TestInfoBarDelegate*> local 279 InfoBarDelegate* infobar = g_browser_process->google_url_tracker()->infobar_; local [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_org/chrome/browser/content_settings/ |
permission_queue_controller.cc | 11 #include "chrome/browser/infobars/infobar.h" 54 InfoBar* infobar() { return infobar_; } function in class:PermissionQueueController::PendingInfoBarRequest 66 InfoBar* infobar_; 171 GetInfoBarService(id)->RemoveInfoBar(i->infobar()); 199 // The infobar that called us is i->infobar(), and its delegate is 205 // This infobar is for the same frame/embedder pair, but in a different 210 // We haven't created an infobar yet, just remove the pending request. 221 GetInfoBarService(i->id())->RemoveInfoBar(i->infobar()); 243 InfoBar* infobar = content::Details<InfoBar::RemovedDetails>(details)->first; local [all...] |
/external/chromium_org/chrome/browser/google/ |
google_url_tracker.cc | 16 #include "chrome/browser/infobars/infobar.h" 292 // Whether there's an existing infobar or not, we need to listen for the 293 // load to commit, so we can show and/or update the infobar when it does. 294 // (We may already be registered for this if there is an existing infobar 304 // yet have an infobar and we're already registered for this, or it has an 305 // infobar and the infobar's owner will handle tearing it down when the 313 // This is a new search on a tab where we already have an infobar. 318 // This is a non-search navigation on a tab with an infobar. If there was 324 // If this navigation actually commits, that will trigger the infobar' 352 InfoBar* infobar = infobar_creator_.Run(infobar_service, this, search_url); local [all...] |
google_url_tracker_unittest.cc | 16 #include "chrome/browser/infobars/infobar.h" 34 // Creates a test infobar and delegate and returns the infobar. Unlike the 35 // parent class, this does not add the infobar to |infobar_service|, since 40 static InfoBar* Create(GoogleURLTrackerTest* test_harness, 202 void OnInfoBarClosed(scoped_ptr<InfoBar> infobar, 240 // object, we don't add the created infobar to it. Instead we will simulate 241 // any helper<->infobar interaction necessary. The returned object will be 243 InfoBar* CreateTestInfoBar(InfoBarService* infobar_service 777 GoogleURLTrackerInfoBarDelegate* infobar = GetInfoBarDelegate(1); local 795 GoogleURLTrackerInfoBarDelegate* infobar = GetInfoBarDelegate(1); local 813 GoogleURLTrackerInfoBarDelegate* infobar = GetInfoBarDelegate(1); local [all...] |
/external/chromium_org/chrome/browser/media/ |
webrtc_browsertest_base.cc | 10 #include "chrome/browser/infobars/infobar.h" 80 InfoBar* infobar = GetUserMediaAndWaitForInfoBar(tab_contents, constraints); local 81 infobar->delegate()->AsConfirmInfoBarDelegate()->Accept(); 82 CloseInfoBarInTab(tab_contents, infobar); 98 InfoBar* infobar = GetUserMediaAndWaitForInfoBar(tab_contents, constraints); local 99 infobar->delegate()->AsConfirmInfoBarDelegate()->Cancel(); 100 CloseInfoBarInTab(tab_contents, infobar); 109 InfoBar* infobar local 172 InfoBar* infobar = details.ptr(); local [all...] |
/external/chromium/chrome/browser/translate/ |
translate_manager_browsertest.cc | 84 // Returns the translate infobar if there is 1 infobar and it is a translate 85 // infobar. 92 // If there is 1 infobar and it is a translate infobar, closes it and returns 95 InfoBarDelegate* infobar = GetTranslateInfoBar(); local 96 if (!infobar) 98 infobar->InfoBarDismissed(); // Simulates closing the infobar. 99 contents()->RemoveInfoBar(infobar); 128 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 285 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 353 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 390 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 489 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 512 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 684 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 713 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 756 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 813 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 941 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1012 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1099 TranslateInfoBarDelegate* infobar; local 1183 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local [all...] |
translate_manager.cc | 224 // infobar if the user already dismissed one in that case. 235 // current infobars. Since InitTranslation might add an infobar, it must 263 // Only add translate infobar if it doesn't exist; if it already exists, 264 // just update the state, the actual infobar would have received the same 387 // If there is already a translate infobar showing, don't show another one. 411 // feature; the user will get an infobar, so they can control whether the 459 TranslateInfoBarDelegate* infobar = TranslateInfoBarDelegate::CreateDelegate( local 462 if (!infobar) { 464 // not happen as we won't show a translate infobar or have the translate 469 ShowInfoBar(tab_contents, infobar); 558 TranslateInfoBarDelegate* infobar; local [all...] |
/external/chromium/chrome/browser/ui/gtk/infobars/ |
translate_infobar_base_gtk.cc | 34 : InfoBar(delegate) { 73 InfoBar::GetTopColor(InfoBarDelegate::PAGE_ACTION_TYPE, r, g, b); 75 InfoBar::GetTopColor(InfoBarDelegate::WARNING_TYPE, r, g, b); 78 InfoBar::GetTopColor(InfoBarDelegate::PAGE_ACTION_TYPE, 82 InfoBar::GetTopColor(InfoBarDelegate::WARNING_TYPE, 98 InfoBar::GetBottomColor(InfoBarDelegate::PAGE_ACTION_TYPE, r, g, b); 100 InfoBar::GetBottomColor(InfoBarDelegate::WARNING_TYPE, r, g, b); 103 InfoBar::GetBottomColor(InfoBarDelegate::PAGE_ACTION_TYPE, 107 InfoBar::GetBottomColor(InfoBarDelegate::WARNING_TYPE, 221 InfoBar* TranslateInfoBarDelegate::CreateInfoBar() 222 TranslateInfoBarBase* infobar = NULL; local [all...] |
/external/chromium_org/chrome/browser/geolocation/ |
chrome_geolocation_permission_context_unittest.cc | 21 #include "chrome/browser/infobars/infobar.h" 59 bool Contains(InfoBar* infobar) const; 65 std::set<InfoBar*> removed_infobars_; 82 content::Details<InfoBar::RemovedDetails>(details)->first); 85 bool ClosedInfoBarTracker::Contains(InfoBar* infobar) const { 86 return removed_infobars_.count(infobar) != 0; 261 InfoBar* infobar = infobar_service()->infobar_at(0) local 408 InfoBar* infobar = infobar_service()->infobar_at(0); local 434 InfoBar* infobar = infobar_service()->infobar_at(0); local 640 InfoBar* infobar = infobar_service()->infobar_at(0); local [all...] |
geolocation_browsertest.cc | 16 #include "chrome/browser/infobars/infobar.h" 130 // until the infobar has been displayed; otherwise it will block until the 144 InfoBar* infobar() { return infobar_; } function in class:__anon5021::GeolocationNotificationObserver 149 InfoBar* infobar_; 186 infobar_ = content::Details<InfoBar::AddedDetails>(details).ptr(); 201 // We're either waiting for just the infobar, or for both a javascript 231 // 1. Infobar is displayed when a geolocation is requested from an unauthorized 233 // 2. Denying the infobar triggers the correct error callback. 234 // 3. Allowing the infobar does not trigger an error, and allow a geoposition t [all...] |
/external/chromium_org/chrome/browser/ui/ |
hung_plugin_tab_helper.cc | 15 #include "chrome/browser/infobars/infobar.h" 133 // Creates a hung plugin infobar and delegate and adds the infobar to 134 // |infobar_service|. Returns the infobar if it was successfully added. 135 static InfoBar* Create(InfoBarService* infobar_service, 161 InfoBar* HungPluginInfoBarDelegate::Create(InfoBarService* infobar_service, 214 // not we're currently showing the infobar. 223 // Possibly-null if we're not showing an infobar right now. 224 InfoBar* infobar; member in struct:HungPluginTabHelper::PluginState 328 InfoBar* infobar = content::Details<InfoBar::RemovedDetails>(details)->first; local [all...] |
/external/chromium_org/chrome/test/ppapi/ |
ppapi_test.cc | 15 #include "chrome/browser/infobars/infobar.h" 74 EXPECT_FALSE(expecting_infobar_) << "Missing an expected infobar"; 89 // It's not safe to remove the infobar here, since other observers (e.g. the 91 // do all necessary infobar manipulation as soon as this call stack returns. 110 InfoBar* infobar = infobar_service->infobar_at(0); local 112 infobar->delegate()->AsConfirmInfoBarDelegate(); 119 infobar_service->RemoveInfoBar(infobar);
|
/external/chromium_org/chrome/browser/notifications/ |
notification_browsertest.cc | 19 #include "chrome/browser/infobars/infobar.h" 410 InfoBar* infobar = infobar_service->infobar_at(infobar_index); local 411 InfoBarDelegate* infobar_delegate = infobar->delegate(); 415 infobar_service->RemoveInfoBar(infobar); 424 infobar_service->RemoveInfoBar(infobar); 435 infobar_service->RemoveInfoBar(infobar); 491 // That's considered a user gesture to webkit, and should produce an infobar. 508 // in no infobar. 589 // Requests notification privileges and verifies the infobar appears [all...] |
/external/chromium_org/chrome/browser/translate/ |
translate_manager_browsertest.cc | 17 #include "chrome/browser/infobars/infobar.h" 151 // Returns the translate infobar if there is 1 infobar and it is a translate 152 // infobar. 159 // If there is 1 infobar and it is a translate infobar, closes it and returns 162 InfoBarDelegate* infobar = GetTranslateInfoBar(); local 163 if (!infobar) 165 infobar->InfoBarDismissed(); // Simulates closing the infobar 185 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 424 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 503 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 542 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 608 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 731 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 890 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 917 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 951 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1051 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1181 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1254 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1341 TranslateInfoBarDelegate* infobar; local 1428 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1479 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1521 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local 1565 TranslateInfoBarDelegate* infobar = GetTranslateInfoBar(); local [all...] |