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 17dfec364cb218ce8b138dc11ea58e2a3410e41c..9459ec2bd8741a7c7a3e23d86a4e0b9f9e23d774 100644 |
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc |
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc |
@@ -1076,6 +1076,16 @@ bool LocationBarView::GetBookmarkStarVisibility() { |
return star_view_->visible(); |
} |
+bool LocationBarView::TestContentSettingImagePressed(size_t index) { |
+ if (index >= content_setting_views_.size()) |
+ return false; |
+ |
+ views::View* image_view = content_setting_views_[index]; |
Peter Kasting
2017/02/08 01:00:03
Nit: Could just inline into next line
kylix_rd
2017/02/10 22:47:48
Done.
kylix_rd
2017/02/13 17:34:54
Reverted.
OnKeyPressed is moved to the protected
|
+ image_view->OnKeyPressed( |
+ ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_SPACE, ui::EF_NONE)); |
Peter Kasting
2017/02/08 01:00:03
Nit: Wrong indentation (should be 4) (git cl forma
kylix_rd
2017/02/10 22:47:48
Done.
|
+ return true; |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// LocationBarView, private views::View implementation: |