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

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

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Removed the 'deceptive content' enum element in favor of the new 'subresource filter' element Created 3 years, 10 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.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index a37de8a5213311b147b0baffddc3d5117ff634b2..ef52bfa6784901e89e6f41f866cf646f4af4b0c1 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1074,6 +1074,18 @@ bool LocationBarView::GetBookmarkStarVisibility() {
return star_view_->visible();
}
+bool LocationBarView::TestContentSettingImagePressed(size_t index) {
+ if (index >= content_setting_views_.size())
+ return false;
+
+ // This up-cast is necessary since the descendant class moved OnKeyPressed
+ // to the protected section.
Peter Kasting 2017/02/15 01:14:01 My instinct is that we should just make that publi
kylix_rd 2017/02/15 16:42:59 Yes, true. However, moving overrides to private se
Peter Kasting 2017/02/15 19:11:39 I'm usually responsible for pushing for that -- my
+ views::View* image_view = content_setting_views_[index];
+ image_view->OnKeyReleased(
+ ui::KeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_SPACE, ui::EF_NONE));
+ return true;
+}
+
////////////////////////////////////////////////////////////////////////////////
// LocationBarView, private views::View implementation:

Powered by Google App Engine
This is Rietveld 408576698