Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Fixed Cocoa build Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index 310a3c36f958a487050978c7de7bc4b0176c2b8e..d3f868593400b4074e550e9f2df0e4c9a1b0a0a3 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -30,6 +30,7 @@
#include "ui/views/drag_controller.h"
class CommandUpdater;
+class ContentSettingBubbleDialogTest;
class ContentSettingBubbleModelDelegate;
class ContentSettingImageView;
class ExtensionAction;
@@ -254,6 +255,7 @@ class LocationBarView : public LocationBar,
private:
using ContentSettingViews = std::vector<ContentSettingImageView*>;
+ friend class ContentSettingBubbleDialogTest;
friend class PageActionImageView;
friend class PageActionWithBadgeView;
using PageActions = std::vector<ExtensionAction*>;
@@ -361,6 +363,8 @@ class LocationBarView : public LocationBar,
ExtensionAction* GetVisiblePageAction(size_t index) override;
void TestPageActionPressed(size_t index) override;
bool GetBookmarkStarVisibility() override;
+ int ContentSettingImageModelCount() override;
+ ContentSettingImageModel* GetContentSettingImageModel(size_t index) override;
// views::View:
const char* GetClassName() const override;
@@ -391,6 +395,11 @@ class LocationBarView : public LocationBar,
// TemplateURLServiceObserver:
void OnTemplateURLServiceChanged() override;
+ // For a given ContentSettingImageModel, return the corresponding
+ // ContentSettingImageView.
+ ContentSettingImageView* GetContentSettingImageViewFromImageModel(
+ ContentSettingImageModel* image_model);
+
// The Browser this LocationBarView is in. Note that at least
// chromeos::SimpleWebViewDialog uses a LocationBarView outside any browser
// window, so this may be NULL.

Powered by Google App Engine
This is Rietveld 408576698