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

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: Temporarily added --disable-gpu when launching subprocess. Filled out all bubble dialog invocation … 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 1d9b7a4753254a4db0faf39c4626446364eb032b..766610218f1fd9c6aec4462714d097f496636ff7 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;
@@ -255,6 +256,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*>;
@@ -363,6 +365,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;
@@ -393,6 +397,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