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

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

Issue 2675213002: [Mac] DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Gets it working on Mac 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
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f2dc43dd569f30773e1c7f8130dbb77af3509b2..3a4012a926cccacd374b77d4cb469922af63ef02 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1097,6 +1097,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];
+ image_view->OnKeyPressed(
+ ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_SPACE, ui::EF_NONE));
+ return true;
+}
kylix_rd 2017/02/06 14:12:40 Doesn't relying on the number and order of the ite
+
////////////////////////////////////////////////////////////////////////////////
// LocationBarView, private views::View implementation:
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698