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: |